Merge pull request #468 from nickbabcock/deps #1813
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 | |
on: | |
pull_request: | |
push: | |
branches: ['master'] | |
tags: ['v*'] | |
schedule: | |
- cron: '00 01 * * *' | |
jobs: | |
release: | |
name: release | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '6.0.*' | |
- run: dotnet publish -c Release .\OhmGraphite\ | |
- name: Set artifact name | |
shell: bash | |
working-directory: OhmGraphite\bin | |
run: | | |
echo "ARTIFACT_NAME=$(echo *.zip)" >> $GITHUB_ENV | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: OhmGraphite\bin\*.zip | |
name: ${{ env.ARTIFACT_NAME }} | |
if-no-files-found: error | |
- name: Release | |
uses: softprops/[email protected] # https://github.com/softprops/action-gh-release/issues/280 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: 'OhmGraphite\bin\*.zip' | |
prerelease: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |