Skip to content

ci(release): Update various github actions #13

ci(release): Update various github actions

ci(release): Update various github actions #13

Workflow file for this run

name: Release build
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
run: sudo apt-get install -y mono-complete
- name: Install dependencies
run: nuget install -o packages
- name: Build executable
run: msbuild -p:Configuration=Release
- name: Set release version env var
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: NeoDoc-${{ env.RELEASE_VERSION }}
path: bin/Release/*
retention-days: 90
- name: Login to GitHub Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/build-push-action@v6
with:
tags: ghcr.io/ttt-2/neodoc/neodoc:${{ env.RELEASE_VERSION }}
pull: true
push: true
load: true