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