change valid path #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-resources-with-pandoc | |
on: | |
push: | |
branches: | |
- "*" # matches every branch that doesn't contain a '/' | |
- "*/*" # matches every branch containing a single '/' | |
- "**" # matches every branch | |
- "!master" # excludes master | |
jobs: | |
build-resources-with-pandoc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
# pandoc/latexのentrypointはpandocコマンドになっているため、usersディレクティブは使用不可 | |
- name: Pull pandoc/latex image | |
run: docker pull pandoc/latex:3.6 | |
- name: Add execute permission to script | |
run: chmod +x ./build-resources-with-pandoc.sh | |
- name: Run pandoc/latex with custom entrypoint | |
run: | | |
docker run --entrypoint /bin/ash -v ${{ github.workspace }}:/workspace -w /workspace pandoc/latex:3.6 -c "./build-resources-with-pandoc.sh" | |
- name: Archive resources | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pandoc_resources | |
path: ./public/resources/ | |
retention-days: 1 |