-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (38 loc) · 1.1 KB
/
deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Deployment action on push to main
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy-static-files:
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: Pushing to production branch
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# directory: github/workspace
branch: gh-pages
message: Minified css, js and html
author_name: 1bl4z3r
author_email: [email protected]
force: true
# - name: Deploy
# uses: peaceiris/actions-gh-pages
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# full_commit_message: ${{ github.event.head_commit.message }}
# publish_dir: ./public