-
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use gh to download release asset
- Loading branch information
Showing
1 changed file
with
9 additions
and
8 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,15 +96,16 @@ jobs: | |
steps: | ||
- name: Prepare workspace | ||
run: rm -rf build-${{ matrix.package }} && mkdir -p build-${{ matrix.package }} | ||
|
||
- name: Download ${{ inputs.tag }} source code | ||
uses: robinraju/[email protected] | ||
with: | ||
token: ${{ secrets.GH_PAT }} | ||
tag: ${{ inputs.tag }} | ||
fileName: globalprotect-openconnect-*.tar.gz | ||
tarBall: false | ||
zipBall: false | ||
out-file-path: build-${{ matrix.package }} | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_PAT }} | ||
run: | | ||
gh -R yuezk/GlobalProtect-openconnect \ | ||
release download ${{ inputs.tag }} \ | ||
--pattern '*[^offline].tar.gz' \ | ||
--dir build-${{ matrix.package }} | ||
- name: Docker Login | ||
run: echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin | ||
- name: Build ${{ matrix.package }} package in Docker | ||
|