Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .github/workflows/build-test-distribute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ jobs:
app_version: ${{ needs.config.outputs.app_version }}
release_tag: ${{ needs.config.outputs.release_tag }}
upload_artifacts: ${{ needs.config.outputs.upload_artifacts == 'true' }}
secrets:
BUILD_MACHINE_TOKEN: ${{ secrets.BUILD_MACHINE_TOKEN }}

windows-build-test:
if: ${{ needs.config.outputs.build_enable_windows == 'true' }}
Expand Down Expand Up @@ -254,7 +252,7 @@ jobs:
shopt -s nullglob
PKG_FILES="MeshLibDist*.zip MeshLib*.nupkg meshlib*-dev.deb meshlib*-dev.rpm meshlib*.pkg meshlib_*.zip meshlib_*.tar.xz"
if [ -n "$(echo $PKG_FILES)" ] ; then
echo ${{ secrets.BUILD_MACHINE_TOKEN }} | gh auth login --with-token
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
gh release upload ${{ needs.config.outputs.release_tag }} $PKG_FILES --clobber
fi

Expand All @@ -268,8 +266,6 @@ jobs:
uses: ./.github/workflows/unity-nuget-test.yml
with:
release_tag: ${{ needs.config.outputs.release_tag }}
secrets:
BUILD_MACHINE_TOKEN: ${{ secrets.BUILD_MACHINE_TOKEN }}

test-distribution:
if: ${{ !cancelled() && needs.config.outputs.upload_artifacts == 'true' }}
Expand All @@ -282,7 +278,7 @@ jobs:
test_macos: ${{ needs.config.outputs.build_enable_macos == 'true' }}
test_windows: ${{ needs.config.outputs.build_enable_windows == 'true' && needs.config.outputs.build-release-win == 'true' }}
secrets:
GH_TOKEN: ${{ secrets.BUILD_MACHINE_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

update-dev-documentation:
# !cancelled() need to ignore general fail previous job, because this job depends on one matrix variant (ubuntu 22),
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/distro-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
shopt -s nullglob
PKG_FILES="MeshLibDist*.zip meshlib_*.zip meshlib_*.tar.xz"
if [ -n "$(echo $PKG_FILES)" ] ; then
echo ${{ secrets.BUILD_MACHINE_TOKEN }} | gh auth login --with-token
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
gh release upload ${{ needs.config.outputs.release_tag }} $PKG_FILES --clobber
fi

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-body-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Determine latest release tag
id: latest_release
run: |
echo ${{ secrets.BUILD_MACHINE_TOKEN }} | gh auth login --with-token
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
LATEST_RELEASE_TAG=$(gh release list --exclude-drafts --repo ${{ github.repository }} --limit 1 | awk '{print $4}')
echo "::set-output name=tag::${LATEST_RELEASE_TAG}"

Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/unity-nuget-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ on:
release_tag:
required: true
type: string
secrets:
BUILD_MACHINE_TOKEN:
required: true

permissions:
id-token: write
Expand Down Expand Up @@ -70,7 +67,7 @@ jobs:
- name: Download nuget package
shell: powershell
env:
GH_TOKEN: ${{ secrets.BUILD_MACHINE_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release download ${{ inputs.release_tag }} --pattern "*.nupkg" --repo ${{ github.repository }} --clobber

Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/versioning-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Create release

on:
workflow_call:
secrets:
BUILD_MACHINE_TOKEN:
required: false
inputs:
app_version:
required: true
Expand Down Expand Up @@ -43,7 +40,7 @@ jobs:
id: create_release
uses: mikepenz/action-gh-release@5c3d16ffbdc3e0fbfe2c8a69a448798f5d9b30c2 # v2.0.0
env:
GITHUB_TOKEN: ${{ secrets.BUILD_MACHINE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_PATH: https://github.com/${{github.repository}}/releases/download/${{steps.version-tag.outputs.short_version}}
with:
name: Release ${{ inputs.release_tag }}
Expand Down
Loading