mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-29 21:40:52 +03:00
Merge pull request #726 from spvkgn/fix-actions
github: set env variable for directory name
This commit is contained in:
commit
abe507c9c3
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@ -288,17 +288,19 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
repo_dir: zapret-${{ github.ref_name }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: zapret
|
path: ${{ env.repo_dir }}
|
||||||
|
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
id: bins
|
id: bins
|
||||||
with:
|
with:
|
||||||
path: zapret/binaries
|
path: ${{ env.repo_dir }}/binaries
|
||||||
pattern: zapret-*
|
pattern: zapret-*
|
||||||
|
|
||||||
- name: Install upx
|
- name: Install upx
|
||||||
@ -360,11 +362,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Create release bundles
|
- name: Create release bundles
|
||||||
run: |
|
run: |
|
||||||
rm -rf zapret/.git*
|
rm -rf ${{ env.repo_dir }}/.git*
|
||||||
rm -rf zapret-${{ github.ref_name }}
|
tar -czf ${{ env.repo_dir }}.tar.gz ${{ env.repo_dir }}
|
||||||
cp -R zapret zapret-${{ github.ref_name }}
|
zip -qr ${{ env.repo_dir }}.zip ${{ env.repo_dir }}
|
||||||
tar -czf zapret-${{ github.ref_name }}.tar.gz zapret-${{ github.ref_name }}
|
|
||||||
zip -qr zapret-${{ github.ref_name }}.zip zapret-${{ github.ref_name }}
|
|
||||||
|
|
||||||
- name: Upload release assets
|
- name: Upload release assets
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
|
Loading…
Reference in New Issue
Block a user