This commit is contained in:
32
.gitea/workflows/zip.yaml
Normal file
32
.gitea/workflows/zip.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Create Archive
|
||||
run-name: ${{ gitea.actor }} is making a zip archive
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
zip:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository (+ download LFS dependencies)
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
lfs: true
|
||||
|
||||
- name: Checkout LFS objects
|
||||
run: git lfs checkout
|
||||
|
||||
- name: Get current date
|
||||
id: date
|
||||
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
|
||||
|
||||
- name: Zip repository
|
||||
run: zip -r Beefycuga-${{ steps.date.outputs.date }}.zip . -x "*.git*"
|
||||
|
||||
- name: Release artifacts to Gitea repository
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
env:
|
||||
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
||||
with:
|
||||
files: |-
|
||||
Beefycuga-${{ steps.date.outputs.date }}.zip
|
||||
tag_name: ${{ steps.date.outputs.date }}
|
||||
name: Release - ${{ steps.date.outputs.date }}
|
||||
Reference in New Issue
Block a user