Skip to content

Commit

Permalink
ci: init half-baked CDN
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAShelf committed Dec 7, 2024
1 parent 241161c commit d5217cd
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/archive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Generate Archives

on:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
create-archives:
runs-on: ubuntu-latest
permissions:
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Create archives
run: |
mkdir -p archives
for dir in wallpapers/*/; do
base=$(basename "$dir")
if [ "$base" != "unorganized" ]; then
zip -r "archives/${base}.zip" "$dir"
fi
done
- name: Upload to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./archives

0 comments on commit d5217cd

Please sign in to comment.