Update release workflow to build and upload artifacts #1
Workflow file for this run
This file contains 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
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
name: Create Release | ||
jobs: | ||
release: | ||
name: Build release artifacts and create a release | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Create zip archive | ||
run: | | ||
git archive --format=zip --prefix=neon-lords/ -o neon-lords.zip ${{ github.ref }} | ||
- name: Create release draft | ||
uses: actions/create-release@1 | ||
id: create_release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
draft: true | ||
prerelease: false | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.ref }} | ||
- name: Upload system.json | ||
uses: actions/upload-release-asset@v1 | ||
id: upload-release-asset | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./system.json | ||
asset_name: system.json | ||
asset_content_type: application/json | ||
- name: Upload neon-lords.zip | ||
uses: actions/upload-release-asset@v1 | ||
id: upload-release-asset | ||
Check failure on line 40 in .github/workflows/release.yml GitHub Actions / Create ReleaseInvalid workflow file
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./neon-lords.zip | ||
asset_name: neon-lords.zip | ||
asset_content_type: application/zip | ||