From 0cc4dae11a7f83303c2d3cea7a3250182b51c546 Mon Sep 17 00:00:00 2001 From: 1bl4z3r <34515568+1bl4z3r@users.noreply.github.com> Date: Mon, 13 May 2024 22:09:15 +0530 Subject: [PATCH] Action deployment --- .github/workflows/deployment.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/deployment.yml diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml new file mode 100644 index 0000000..43e96f5 --- /dev/null +++ b/.github/workflows/deployment.yml @@ -0,0 +1,27 @@ +name: Deployment action on push to main +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + name: Deploy Static page to GitHub Pages + runs-on: ubuntu-latest + env: + prepo: ${{github.repository}} + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - name: Set up Minify Actions + uses: amireshoon/minifyAction@main + with: + repo: $prepo + - name: Minifying Codes + run: | + minifier.sh $prepo + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public \ No newline at end of file