Skip to content

Commit

Permalink
chore(ci): update
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Sep 8, 2024
1 parent 72558b3 commit fca0df7
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,6 @@ jobs:
with:
format: "YYYY-MM-DDTHH:mm:ssZ"

- name: Prebuild project
run: |
npm i -g pnpm
dotnet build "GZCTF.csproj" -c Release -o build
- name: Publish project
run: |
dotnet publish "GZCTF.csproj" -c Release -o publish/linux/amd64 -r linux-x64 --no-self-contained /p:PublishReadyToRun=true
# ignore arm64 for non-release tags
if [ "${{ env.RELEASE }}" = "true" ]; then
dotnet publish "GZCTF.csproj" -c Release -o publish/linux/arm64 -r linux-arm64 --no-self-contained /p:PublishReadyToRun=true
fi
env:
VITE_APP_BUILD_TIMESTAMP: ${{ steps.datetime.outputs.time }}
VITE_APP_GIT_SHA: ${{ github.sha }}
VITE_APP_GIT_NAME: ${{ github.ref_name }}

- name: Docker setup QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -82,6 +64,24 @@ jobs:
username: ${{ secrets.ALIYUN_USER }}
password: ${{ secrets.ALIYUN_PASSWORD }}

- name: Prebuild project
run: |
npm i -g pnpm
dotnet build "GZCTF.csproj" -c Release -o build
- name: Publish project
run: |
dotnet publish "GZCTF.csproj" -c Release -o publish/linux/amd64 -r linux-x64 --no-self-contained /p:PublishReadyToRun=true
# ignore arm64 for non-release tags
if [ "${{ env.RELEASE }}" = "true" ]; then
dotnet publish "GZCTF.csproj" -c Release -o publish/linux/arm64 -r linux-arm64 --no-self-contained /p:PublishReadyToRun=true
fi
env:
VITE_APP_BUILD_TIMESTAMP: ${{ steps.datetime.outputs.time }}
VITE_APP_GIT_SHA: ${{ github.sha }}
VITE_APP_GIT_NAME: ${{ github.ref_name }}

- name: Docker metadata action
uses: docker/metadata-action@v5
id: meta
Expand Down

0 comments on commit fca0df7

Please sign in to comment.