Skip to content

Commit

Permalink
πŸ‘· Build static site output in the Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mountainash committed Mar 6, 2024
1 parent 50def85 commit d5afa6d
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/debug-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,31 @@ jobs:
- name: Pull Vercel environment information πŸ”‘
run: npx vercel pull --yes --token=${{ secrets.VERCEL_TOKEN }}

- name: Build website πŸ—
- name: Make sample website πŸ“„
env:
LOCAL_REF: ${{ github.event.inputs.ref }}
run: touch index.html && echo "LOCAL_REF=$LOCAL_REF" >> index.html
BUILD_DIR: .vercel/output/static
run: mkdir -p $BUILD_DIR/ && touch $BUILD_DIR/index.html && echo "LOCAL_REF=$LOCAL_REF" > $BUILD_DIR/index.html

- name: Make sample config πŸ“„
env:
CONFIG_DIR: .vercel/output

- name: Create config.json πŸ“„
run: |
touch $CONFIG_DIR/config.json
echo "{\"version\": 3}" > $CONFIG_DIR/config.json
- name: Deploy to Vercel πŸš€
id: verceldeploy
# Fork of https://github.com/BetaHuhn/deploy-to-vercel-action
uses: mountainash/fork-deploy-to-vercel-action@924ce29dfa0ee1980ef938dfee6c853fe7e5732d
with:
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
PREBUILT: true

- name: Deploy to Vercel outputs ✍️
run: |
Expand Down

0 comments on commit d5afa6d

Please sign in to comment.