mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Update build.yml
This commit is contained in:
@@ -198,14 +198,17 @@ jobs:
|
|||||||
tag_name: "latest"
|
tag_name: "latest"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Checkout Repo
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
path: source
|
||||||
|
fetch-depth: 1
|
||||||
|
sparse-checkout: 'README.md'
|
||||||
- name: Create Latest Tag
|
- name: Create Latest Tag
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
|
working-directory: source
|
||||||
run: |
|
run: |
|
||||||
# filter tree is what makes this fast
|
|
||||||
git clone --config transfer.fsckobjects=false --tags --no-checkout --filter=tree:0 \
|
|
||||||
"https://github.com/$GITHUB_REPOSITORY" \
|
|
||||||
source
|
|
||||||
cd source
|
|
||||||
git tag -d latest || true
|
git tag -d latest || true
|
||||||
git tag latest
|
git tag latest
|
||||||
git push origin latest
|
git push origin latest
|
||||||
|
|||||||
Reference in New Issue
Block a user