🚀 Deploy with Zip #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🚀 Deploy with Zip | |
on: | |
workflow_dispatch: | |
inputs: | |
zip: | |
description: 'The url to the zip file' | |
required: true | |
jobs: | |
deploy: | |
name: 🚀 Deploy | |
runs-on: ubuntu-latest | |
permissions: | |
pages: write | |
id-token: write | |
steps: | |
- name: 📦 Download zip file To '_site' | |
run: | | |
curl -L ${{ github.event.inputs.zip }} -o _site.zip | |
unzip _site.zip -d _site | |
find _site -name __MACOSX | xargs rm -rf | |
- name: 📦 Upload '_site' | |
uses: actions/upload-pages-artifact@v3 | |
- name: 🚀 Deploy To GitHub Pages | |
uses: actions/deploy-pages@v4 |