Skip to content

Commit

Permalink
fix: checkout naming
Browse files Browse the repository at this point in the history
  • Loading branch information
tintinkung committed Apr 21, 2024
1 parent 728ffdc commit 00430a3
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,24 @@ jobs:
runs-on: ubuntu-latest
name: Build and Push
steps:
- name: git-checkout@master
uses: actions/checkout@v2
- uses: actions/checkout@master
- name: Checkout
run: git config --global user.email "sukrit_dinosuar@hotmail.com"
run: git config --global user.name "tintinkung"

uses: actions/setup-node@main
with:
node-version: 18.x

- name: Build
run: npm run deploy # The build command of your project

- name: Push
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages # The branch name where you want to push the assets
FOLDER: "." # The directory where your assets are generated
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub will automatically add this - you don't need to bother getting a token
SSH_PRIVATE_KEY: ${{ secrets.SHA_WRITE_ACCESS }}
MESSAGE: "build: ({sha}) {msg}" # The commit message
MESSAGE: "build: ({sha}) {msg}" # The commit message

#- name: Push
# uses: s0/git-publish-subdir-action@develop

0 comments on commit 00430a3

Please sign in to comment.