Update ArchiSteamFarm digest to cb0e04c #400
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
name: .NET | |
on: [ push, pull_request ] | |
env: | |
DOTNET_SDK_VERSION: 8 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ env.DOTNET_SDK_VERSION }} | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build with .NET Core | |
run: dotnet publish -c Release -f net8.0 -o out/${{ github.event.repository.name }} | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ github.event.repository.name }} | |
path: out/${{ github.event.repository.name }} | |
release: | |
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download artifacts | |
uses: actions/[email protected] | |
with: | |
name: ${{ github.event.repository.name }} | |
path: out/${{ github.event.repository.name }} | |
- name: Archive release | |
uses: thedoctor0/zip-release@master | |
with: | |
directory: out | |
path: ${{ github.event.repository.name }} | |
type: 'zip' | |
filename: 'generic.zip' | |
exclusions: '*.json' | |
- name: Create GitHub release | |
id: github_release | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: ${{ github.event.repository.name }} V${{ github.ref }} | |
- name: Upload artifacts to GitHub release | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.github_release.outputs.upload_url }} | |
asset_path: out/generic.zip | |
asset_name: generic.zip | |
asset_content_type: application/zip |