Skip to content

Commit

Permalink
2024-12-28 15:16
Browse files Browse the repository at this point in the history
  • Loading branch information
vomw committed Dec 28, 2024
1 parent edb86b0 commit 71a0668
Showing 1 changed file with 23 additions and 25 deletions.
48 changes: 23 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
name: release
name: Clone and Compress

on:
push:
tags:
- "*"

permissions:
contents: write
workflow_dispatch:

jobs:
goreleaser:
clone_compress_upload:
runs-on: ubuntu-latest

steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v5
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Clone
run: |
git clone https://github.com/barry-far/V2ray-Configs repo
cd repo
git submodule update --init --recursive
- name: Install 7z
run: sudo apt-get install -y p7zip-full

- name: Compress repository using 7z
run: |
7z a -t7z -m0=lzma2:d1024m -mx=9 -aoa -mfb=64 -md=32m -ms=on -mhe=on -pvomw -sdel compressed_repo.7z repo
- name: Upload compressed repo
uses: actions/upload-artifact@v3
with:
name: compressed-repo
path: compressed_repo.7z

0 comments on commit 71a0668

Please sign in to comment.