fix undefined reference #47
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: Ask Your Notes CI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18.12.1" | |
- uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Install dependencies | |
run: bun install | |
- name: Lint | |
run: bun run lint | |
bump-version: | |
runs-on: ubuntu-latest | |
needs: lint | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the | |
# added or changed files to the repository. | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: setup git config | |
run: | | |
git config user.name veeda | |
git config user.email [email protected] | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18.12.1" | |
- uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Install dependencies | |
run: bun install --frozen-lockfile | |
- name: Bump version | |
run: | | |
npm run release:patch | |
git push --follow-tags origin ${{ github.head_ref }} | |
- name: Cache Bun | |
id: cache-bun | |
uses: actions/cache@v3 | |
with: | |
path: ~/.bun/install/cache | |
key: ${{ runner.os }}-bun | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
needs: bump-version | |
permissions: | |
contents: write | |
steps: | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
file: dockerfile.smartNotes | |
tags: iqbaaaaalf/askyournotes:latest | |
- name: trigger deploy | |
run: | | |
curl -X POST -H "Content-Type: application/json" ${{ secrets.DEPLOY_HOOK }} |