Skip to content

ci: automatically draft a release on tags with the binaries (#18) #15

ci: automatically draft a release on tags with the binaries (#18)

ci: automatically draft a release on tags with the binaries (#18) #15

Workflow file for this run

name: .NET
on:
push:
branches: [ "master" ]
tags:
- "*"
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Install Antlr & other apt packages.
run: sudo apt-get -y install antlr4=4.7.2-5
- name: Generate Antlr files.
run: antlr4 -Dlanguage=CSharp -no-listener -visitor ./Grammar/iro.g4
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Build Executables
run: |
./build-release.sh
- name: Upload Executables
uses: actions/upload-artifact@v3
with:
name: bin
path: |
./bin/ReleaseZipped
retention-days: 1
release:
if: startsWith(github.ref, 'refs/tags/')
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Download All Artifacts
uses: actions/download-artifact@v3
- name: Draft the release
uses: meeDamian/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
gzip: folders
draft: true
files: >
./bin/win-x64.zip
./bin/linux-x64.zip
./bin/linux-musl-x64.zip
./bin/linux-arm64.zip
./bin/osx-x64.zip
./bin/osx-arm64.zip