Modify release configureations. #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: RPG-Kit Pre-Release | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| - "dev/**" | |
| paths: | |
| - "RPG-Kit/**" | |
| - ".github/workflows/rpgkit-pre-release.yml" | |
| - ".github/workflows/scripts/rpgkit/**" | |
| workflow_dispatch: | |
| jobs: | |
| pre-release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| env: | |
| PROJECT_DIR: RPG-Kit | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Prepare scripts | |
| run: chmod +x .github/workflows/scripts/rpgkit/*.sh | |
| - name: Get RPG-Kit pre-release version | |
| id: get_tag | |
| run: .github/workflows/scripts/rpgkit/get-next-pre-version.sh "${{ github.run_number }}" | |
| - name: Check if release already exists | |
| id: check_release | |
| run: .github/workflows/scripts/rpgkit/check-release-exists.sh "${{ steps.get_tag.outputs.tag_name }}" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Create release package variants | |
| if: steps.check_release.outputs.exists == 'false' | |
| run: .github/workflows/scripts/rpgkit/create-release-packages.sh "${{ steps.get_tag.outputs.new_version }}" | |
| - name: Generate release notes | |
| if: steps.check_release.outputs.exists == 'false' | |
| run: .github/workflows/scripts/rpgkit/generate-release-notes.sh "${{ steps.get_tag.outputs.new_version }}" "${{ steps.get_tag.outputs.latest_tag }}" pre | |
| - name: Create GitHub pre-release | |
| if: steps.check_release.outputs.exists == 'false' | |
| run: .github/workflows/scripts/rpgkit/create-github-release.sh "${{ steps.get_tag.outputs.new_version }}" "${{ steps.get_tag.outputs.tag_name }}" pre | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |