Release #20
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: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Tag Version | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Work around permission issue | |
run: git config --global --add safe.directory /github/workspace | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: '0' | |
- name: Install GitVersion | |
uses: gittools/actions/gitversion/setup@v0.9.7 | |
with: | |
versionSpec: 5.x | |
- id: determine_version | |
name: Determine Version | |
uses: gittools/actions/gitversion/execute@v0.9.7 | |
- name: Create git tag | |
run: git tag $GITVERSION_SEMVER -f | |
- name: Push to repository | |
run: git push --tags | |
create: | |
name: Zip & Release | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- name: Work around permission issue | |
run: git config --global --add safe.directory /github/workspace | |
- name: Checkout | |
uses: actions/checkout@v2.2.0 | |
with: | |
fetch-depth: 0 | |
- name: Zip custom | |
uses: thedoctor0/zip-release@master | |
with: | |
filename: 'custom.zip' | |
exclusions: 'clear-sound-cache.bat /cfg/* cfg.zip /.git/* README.md /.github/* /oldHuds/* oldHuds.zip /visual/*' | |
- name: Zip cfg | |
uses: thedoctor0/zip-release@master | |
with: | |
filename: 'cfg.zip' | |
exclusions: 'clear-sound-cache.bat /custom/* /custom.zip /.git/* README.md /.github/* /oldHuds/* oldHuds.zip /visual/*' | |
- name: 'Get Previous tag' | |
id: previoustag | |
uses: "WyriHaximus/github-action-get-previous-tag@v1" | |
- name: Changelog | |
uses: scottbrenner/generate-changelog-action@master | |
id: Changelog | |
- name: Create Release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ steps.previoustag.outputs.tag }} | |
generateReleaseNotes: true | |
bodyFile: ".github/body.md" | |
body: | | |
${{ steps.Changelog.outputs.changelog }} | |
allowUpdates: true | |
owner: fluteds | |
artifacts: "cfg.zip, custom.zip, clear-sound-cache.bat, visual/lod-tweak-tf2.nip, visual/lod-tweak-quality-tf2.nip" | |
token: ${{ secrets.GITHUB_TOKEN }} |