Skip to content

Commit

Permalink
add actions
Browse files Browse the repository at this point in the history
  • Loading branch information
s10018 committed Mar 12, 2024
1 parent 90309af commit 292151f
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/eleventy-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Deploy eleventy with GitHub Pages

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

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

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
submodules: recursive
- name: Build with eleventy
uses: TartanLlama/actions-eleventy@master
with:
args: --output ./docs
install_dependencies: true
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./docs
destination: ./docs/_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/_site
name: github-pages
retention-days: 1

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4


4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Source of the "NLP2024 Workshop on Japanese Language Resources" website.
- Push to the `main` branch of this repository
- => Files under `docs/` served as https://jedworkshop.github.io/JLR2024 by GitHub Pages

## GitHub Actions

`Actions` -> `Workflows` "Deploy eleventy with GitHub Pages" -> `Run workflow`
`src`内ファイルを`docs`に変換しつつ、GitHub Pagesを更新する。

## Dependencies

Expand Down

0 comments on commit 292151f

Please sign in to comment.