Skip to content

Commit

Permalink
Release pipeline v1
Browse files Browse the repository at this point in the history
  • Loading branch information
Bliztle committed May 23, 2024
1 parent 9e97594 commit ce36fab
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Releases

on:
push:
tags:
- 'v1.**'
branches:
- release/**

jobs:

build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Setup Antlr4
uses: siacodelabs/setup-antlr4@v2
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -warnaserror
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Create linux release
- run: dotnet publish -r linux-x64 /p:PublishSingleFile=true SocietalConstructionTool -o SctLinux
- name: Move releases
- run: |
mkdir releases
mv SctLinux/SocietalConstructionTool releases/sct-linux
- uses: ncipollo/release-action@v1
with:
artifacts: "releases/*"

0 comments on commit ce36fab

Please sign in to comment.