Update CHANGELOG.md #43
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: Deployment Pipeline for master branch | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
permissions: write-all | |
runs-on: windows-latest | |
outputs: | |
version: ${{ steps.release.outputs.version }} | |
steps: | |
- name: Checkout repository | |
id: checkout | |
uses: actions/checkout@v2 | |
- name: Set up .NET | |
id: setup | |
uses: actions/[email protected] | |
with: | |
dotnet-version: '6.x' | |
- name: Build .NET solution | |
id: build | |
run: | | |
dotnet build gamevault.sln --configuration Release | |
7z a GameVault.zip gamevault/bin | |
- name: Create Github Tag & Release | |
id: release | |
uses: CupOfTea696/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag: "$semver.0" | |
- name: Upload Release Artifact | |
id: upload | |
uses: actions/upload-release-asset@v1 | |
with: | |
asset_path: GameVault.zip | |
asset_name: GameVault.zip | |
asset_content_type: application/zip | |
upload_url: ${{steps.release.outputs.upload_url}} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
notify_discord: | |
needs: deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send Discord Notification | |
id: discord | |
uses: Ilshidur/action-discord@master | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_RELEASE_BOT_WEBHOOK }} | |
with: | |
args: '<@&1128857090090340382> New Release: ${{ github.event.repository.full_name }} v${{ needs.deploy.outputs.version }}.0 has been deployed. Here are the changes: https://github.com/${{ github.event.repository.full_name }}/releases/tag/${{ needs.deploy.outputs.version }}.0' |