Skip to content

Commit

Permalink
Update workflow to deploy to gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixelrobin committed Mar 26, 2024
1 parent 17b4961 commit 51805a4
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/build-bookmarklet-page.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
# This is a basic workflow to help you get started with Actions

name: Build Bookmarklet Page

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
# Run when the main branch is pushed to
push:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"

# Build Job
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
Expand All @@ -24,11 +21,20 @@ jobs:
- uses: actions/checkout@v3

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
- name: Run NPM Build
run: npm run build

- name: Upload GitHub Pages artifact
uses: actions/[email protected]

# Deployment job
deploy:
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 51805a4

Please sign in to comment.