fix: shadowed data folder issue #7
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: ci | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
env: | |
NODE_OPTIONS: --max_old_space_size=4096 | |
permissions: | |
contents: read | |
deployments: write | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Setup pnpm π | |
uses: pnpm/action-setup@v4 | |
- name: Install dependencies π | |
run: pnpm install | |
- name: Build readl8r π§ | |
run: pnpm build | |
- name: Log in to docker hub π | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_ACCESS_TOKEN }} | |
- name: Build docker image π§ | |
run: docker build . -f ./Dockerfile -t jacobshuman/readl8r:latest | |
- name: Push docker image π¨ | |
run: docker push jacobshuman/readl8r:latest |