From 95f1a42b74dd049172f9aa7760ceb07b0041834f Mon Sep 17 00:00:00 2001 From: rizaldy Date: Wed, 31 Jan 2024 01:19:25 +0700 Subject: [PATCH] ci: setup github workflows --- .github/workflows/jobs.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/jobs.yaml diff --git a/.github/workflows/jobs.yaml b/.github/workflows/jobs.yaml new file mode 100644 index 0000000..c21af68 --- /dev/null +++ b/.github/workflows/jobs.yaml @@ -0,0 +1,21 @@ +name: deploy +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@master + - run: echo "COMMIT_SHORT_SHA=`git rev-parse --short HEAD`" >> $GITHUB_ENV + - uses: actions/setup-node@v4 + with: + node-version: 21 + cache: "npm" + - run: npm ci + - run: npm run build + - uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./out + cname: ig.rizaldy.club