All checks were successful
Create Archive / zip (push) Successful in 9s
32 lines
905 B
YAML
32 lines
905 B
YAML
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 }} |