Release (Multiple Arch) #5
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: Create Release | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| create_release: | |
| if: github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Download artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Read Version | |
| id: read_version | |
| run: | | |
| VERSION=$(cat version.txt) | |
| echo "Current version: $VERSION" | |
| echo "version=$VERSION" >> $GITHUB_ENV | |
| - name: Create Release | |
| id: create-release | |
| uses: comnoco/[email protected] | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: ${{ env.version }} | |
| release_name: Version ${{ env.version }} 🔖 | |
| body: $(cat CHANGELOG.md) | |
| draft: false | |
| prerelease: false | |
| - name: Upload Artifacts to Release | |
| uses: alexellis/[email protected] | |
| with: | |
| asset_paths: '[ "build/*" ]' |