Fix ItemVariationTable (#42) #38
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
on: | |
push: | |
tags: | |
- "v[0-9]+.[0-9]+.[0-9]+" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set VERSION variable from tag | |
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
# - name: Build | |
# run: dotnet build --configuration Release /p:Version=${VERSION} | |
- name: Pack | |
run: dotnet pack --configuration Release --output . | |
- name: Push | |
run: dotnet nuget push Maple2.File.Parser.Tadeucci.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_TOKEN }} | |
- name: Check Available NuGet Package | |
uses: BMTLab/nuget-package-check-action@v1.4.5 | |
with: | |
package: Maple2.File.Parser.Tadeucci | |
version: ${{ env.VERSION }} | |
attempts: 15 | |
continue-on-error: true | |
- name: Send Discord Webhook | |
uses: hugoalh/send-discord-webhook-ghaction@v6.0.0 | |
with: | |
key: ${{ secrets.DISCORD_WEBHOOK_URL }} | |
username: Github | |
avatar_url: https://cdn.discordapp.com/icons/1233581457470128209/e3ec579ceb94fa49d096e6dba0ef4931.webp | |
content: "New version published! <:widebeanhappy1:1234223129015091210><:widebeanhappy2:1234223164322611354><:widebeanhappy3:1234223182383284276>" | |
embeds: | | |
[ | |
{ | |
"title": "Maple2.File.Parser.Tadeucci", | |
"url": "https://www.nuget.org/packages/Maple2.File.Parser.Tadeucci", | |
"color": "rgb(87, 242, 135)", | |
} | |
] | |
- name: Create release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
generate_release_notes: true | |
files: | | |
Maple2.File.Parser.Tadeucci.${{ env.VERSION }}.nupkg |