fix: Don't overwrite dep directories in docker-compose
'ed container…
#151
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: Publish docs | |
on: | |
push: | |
paths: | |
- "**.ex" | |
- "**.exs" | |
- "**.md" | |
- ".github/workflows/docs.yml" | |
branches: | |
- main | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/configure-pages@v5 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: 26.2 | |
elixir-version: 1.16.1 | |
- run: mix deps.get | |
- run: mix docs --formatter html | |
- uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./doc | |
- uses: actions/deploy-pages@v4 | |
deploy: | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
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 |