Skip to content

Commit

Permalink
feat: update minifier
Browse files Browse the repository at this point in the history
  • Loading branch information
skifli authored Feb 5, 2025
1 parent f2b9e19 commit 6376284
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 41 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/minifier.yml

This file was deleted.

14 changes: 5 additions & 9 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches:
- minified
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -29,20 +28,17 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Fail if branch is not minified
if: github.event_name == 'workflow_dispatch' && github.ref != 'refs/heads/minified'
run: |
echo "This workflow should not be triggered with workflow_dispatch on a branch other than minified"
exit 1
- name: Checkout
uses: actions/checkout@v3
- name: Minify Action
uses: dra1ex/[email protected]
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: "."
path: './'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v1

0 comments on commit 6376284

Please sign in to comment.