Skip to content

Fix: illegal character in release tag name #8

Fix: illegal character in release tag name

Fix: illegal character in release tag name #8

Workflow file for this run

name: Build Station
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Install Scoop - setup - build
shell: pwsh
run: |
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
scoop install just
just deps
make
gcc -E -x c tracks.pnml > tracks.nml
nmlc tracks.nml --grf=china-set-tracks.grf
- name: Pack Binaries
shell: pwsh
run: |
New-Item -ItemType Directory -Path release
Move-Item -Path china-set-tracks.grf -Destination release/
- name: Get Date
id: date
shell: pwsh
run: echo "RELEASE=$(Get-Date -Format 'yyyy-MM-dd')-$(git rev-parse --short HEAD)" >> $env:GITHUB_ENV
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.RELEASE }}
release_name: Release ${{ env.RELEASE }}
draft: false
prerelease: true
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release/china-set-tracks.grf
asset_name: china-set-tracks.grf
asset_content_type: application/octet-stream