Create LICENSE #28
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: Docker Image CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: git clone --depth=1 -b wasm https://github.com/azizghuloum/context-free.git | |
- run: (cd context-free && docker build . -t contextfree -f Wasm.Dockerfile) | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag context-free-web | |
- run: (container=$(docker create context-free-web) && docker cp ${container}:/app/dist ./dist) | |
- uses: actions/upload-pages-artifact@v3 | |
with: | |
name: github-pages | |
path: ./dist | |
retention-days: 90 | |
deploy: | |
if: github.ref == 'refs/heads/main' | |
needs: build | |
permissions: | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |