Bump actions/checkout from 4 to 5 #21
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: release | |
| on: push | |
| jobs: | |
| build: | |
| if: github.ref_type == 'tag' | |
| uses: ./.github/workflows/build.yml | |
| release: | |
| if: github.ref_type == 'tag' | |
| needs: [build] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: cs-studio-p2 | |
| path: cs-studio-p2/ | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: cs-studio-products | |
| path: cs-studio-products/ | |
| - name: Create GitHub Release | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| run: >- | |
| gh release create | |
| '${{ github.ref_name }}' | |
| --repo '${{ github.repository }}' | |
| --notes "" | |
| - name: Zip release | |
| run: >- | |
| zip -r cs-studio-p2.zip cs-studio-p2 | |
| - name: Upload p2 to GitHub Release | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| run: >- | |
| gh release upload | |
| '${{ github.ref_name }}' cs-studio-p2.zip | |
| --repo '${{ github.repository }}' | |
| - name: Upload products to GitHub Release | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| run: >- | |
| gh release upload | |
| '${{ github.ref_name }}' cs-studio-products/*.zip | |
| --repo '${{ github.repository }}' |