Skip to content

Commit

Permalink
Merge pull request #2 from kakadigi/1-deploy-to-github-pages
Browse files Browse the repository at this point in the history
[#1] Create workflows to deploy ghpages
  • Loading branch information
ifirmawan authored Sep 3, 2023
2 parents fbb0a30 + 54489d0 commit ff128ec
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build 11ty site

on:
push:
branches: ["main"]

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install dependencies & build
run: |
npm install
npx @11ty/eleventy
- uses: actions/upload-pages-artifact@v2

deploy:
runs-on: ubuntu-latest
needs: build
steps:
- id: deployment
uses: actions/deploy-pages@v2
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

0 comments on commit ff128ec

Please sign in to comment.