Release Tag: AutoForager/3.7.1 #93
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: Release | |
run-name: "Release Tag: ${{ github.ref_name }}" | |
on: | |
push: | |
tags: | |
- '*/*.*.*' | |
jobs: | |
create-releae: | |
name: Build and created tagged release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Split tag | |
uses: jungwinter/[email protected] | |
id: split | |
with: | |
msg: ${{ github.ref_name }} | |
separator: '/' | |
# - name: Test split | |
# run: | | |
# echo ${{ steps.split.outputs._0 }} | |
# echo ${{ steps.split.outputs._1 }} | |
- name: Checkout source code | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.events.repository.default_branch }} | |
- name: Setup dotnet 9.0.x | |
uses: actions/[email protected] | |
with: | |
dotnet-version: '9.0.x' | |
- name: Install dependencies | |
run: dotnet restore ${{ steps.split.outputs._0 }} | |
working-directory: src | |
- name: Build | |
run: dotnet build --force ${{ steps.split.outputs._0 }} -c Release -p:BuildConfig=GITHUB | |
working-directory: src | |
# - name: Test output | |
# run: | | |
# echo 'src/${{ steps.split.outputs._0 }}/bin/Release/net6.0/${{ steps.split.outputs._0 }} ${{ steps.split.outputs._1 }}.zip' | |
# - name: Bundle Content Packs | |
# if: ${{ steps.split.outputs._0 == 'AutoForager' }} | |
# run: | | |
# cd "src/Content Packs" | |
# for i in */; do cd "$i"; for j in */; do zip -r "${j%/}.zip" "$j"; done; cd ..; done | |
# cd ../.. | |
- name: Create GitHub Release | |
uses: 'marvinpinto/[email protected]' | |
id: auto_release | |
with: | |
repo_token: '${{ secrets.GITHUB_TOKEN }}' | |
title: '${{ steps.split.outputs._0 }} @ v${{ steps.split.outputs._1 }}' | |
prerelease: false | |
automatic_release_tag: ${{ steps.split.outputs._1 }}+${{ steps.split.outputs._0 }} | |
files: 'src/_releases/${{ steps.split.outputs._0 }} ${{ steps.split.outputs._1 }}.zip' | |
env: | |
CI: false | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |