Skip to content

Commit

Permalink
auth
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederoxDev committed Jul 28, 2024
1 parent 4ead576 commit 81512ee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ jobs:
choco install gh -y
shell: cmd

- name: Authenticate with github CLI
run: gh auth login --with-token
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: pwsh

- name: Setup Visual studio
uses: microsoft/setup-msbuild@v2

Expand Down Expand Up @@ -83,17 +89,12 @@ jobs:
run: |
$tag_name = "v$env:NEW_VERSION"
$release_name = "Release $env:NEW_VERSION"
$token = "${{ secrets.GITHUB_TOKEN }}"
gh release create $tag_name --title "$release_name" --notes "Automated release" --target main --repo ${{ github.repository }} --draft=false --prerelease=false --token $token
gh release create $tag_name --title "$release_name" --notes "Automated release" --target main --repo FrederoxDev/Amethyst --draft=false --prerelease=false
shell: pwsh

- name: Upload Release Asset
run: |
$upload_url = "$(gh release view v$env:NEW_VERSION --json upload_url --jq .upload_url)"
$asset_path = "dist/AmethystRuntime@$env:NEW_VERSION.zip"
$asset_name = "AmethystRuntime@$env:NEW_VERSION.zip"
$token = "${{ secrets.GITHUB_TOKEN }}"
gh release upload v$env:NEW_VERSION $asset_path --name "$asset_name" --repo ${{ github.repository }} --token $token
gh release upload "v$env:NEW_VERSION" $asset_path --name "$asset_name" --repo FrederoxDev/Amethyst
shell: pwsh
2 changes: 1 addition & 1 deletion AmethystRuntime/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Amethyst Options
set(MOD_VERSION "1.4.1")
set(MOD_VERSION "1.4.0")
set(MOD_AUTHOR "FrederoxDev")

set(MOD_TARGET_VERSION_MAJOR 1)
Expand Down

0 comments on commit 81512ee

Please sign in to comment.