This commit is contained in:
@@ -29,21 +29,22 @@ jobs:
|
||||
- name: Build
|
||||
run: |
|
||||
make -C "${{ gitea.workspace }}/clash" deploy-build
|
||||
- name: Prepare archive
|
||||
run: |
|
||||
mkdir usr/
|
||||
target="${PWD}/usr"
|
||||
cd "${{ gitea.workspace }}/clash"
|
||||
make PREFIX="${target}" deploy-install
|
||||
- name: Make artifact name
|
||||
id: name
|
||||
run: |
|
||||
short_sha="$(git rev-parse --short HEAD)"
|
||||
branch="${{ github.head_ref || github.ref_name }}"
|
||||
echo "name=chash-${branch}-${short_sha}" >> "$GITEA_OUTPUT"
|
||||
- name: Make archive
|
||||
run: |
|
||||
archive="${PWD}/archive.tar.gz"
|
||||
cd "${{ gitea.workspace }}/clash"
|
||||
mkdir usr/
|
||||
make PREFIX="usr/" deploy-install
|
||||
tar -caf "${archive}" usr/
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
path: usr/
|
||||
name: ${{ steps.name.outputs.name }}
|
||||
archive: true
|
||||
path: archive.tar.gz
|
||||
name: "${{ steps.name.outputs.name }}.tar.gz"
|
||||
archive: false
|
||||
|
||||
Reference in New Issue
Block a user