Skip to content

Commit

Permalink
Comment outdated build & deploy workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
martinezguillaume committed May 5, 2024
1 parent 95f9322 commit 3f4627b
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,40 +16,40 @@ jobs:
- name: Run tests
run: bun run test

build:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Build web app
run: bun expo export -p web
- name: Setup Pages
if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v3
- name: Upload Artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v1
with:
path: "./dist"
# build:
# if: github.ref == 'refs/heads/main'
# runs-on: ubuntu-latest
# needs: test
# steps:
# - uses: actions/checkout@v3
# - uses: oven-sh/setup-bun@v1
# - name: Install dependencies
# run: bun install
# - name: Build web app
# run: bun expo export -p web
# - name: Setup Pages
# if: github.ref == 'refs/heads/main'
# uses: actions/configure-pages@v3
# - name: Upload Artifact
# if: github.ref == 'refs/heads/main'
# uses: actions/upload-pages-artifact@v1
# with:
# path: "./dist"

deploy:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: build
# deploy:
# if: github.ref == 'refs/heads/main'
# runs-on: ubuntu-latest
# needs: build

permissions:
pages: write
id-token: write
# permissions:
# pages: write
# id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
# steps:
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v2

0 comments on commit 3f4627b

Please sign in to comment.