Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mfoltz authored Nov 18, 2024
1 parent 75fed36 commit fcd4799
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,19 @@ jobs:
- name: Update thunderstore.toml
run: |
sed -i "s/versionNumber = \".*\"/versionNumber = \"${{ env.version }}\"/" thunderstore.toml
- name: Create secrets.json
run: |
echo '{
"NEW_SHARED_KEY": "${{ secrets.NEW_SHARED_KEY }}"
}' > secrets.json
- name: Build (Release)
env:
NEW_SHARED_KEY: ${{ secrets.NEW_SHARED_KEY }}
run: |
echo "Using NEW_SHARED_KEY: $NEW_SHARED_KEY"
dotnet build . --configuration Release -p:Version=${{ env.version }}
run: dotnet build . --configuration Release -p:Version=${{ env.version }}

- name: Clean Up
run: rm secrets.json

- name: GH Release
uses: softprops/action-gh-release@v1
if: github.event_name == 'workflow_dispatch'
Expand Down

0 comments on commit fcd4799

Please sign in to comment.