Skip to content

Instantly share code, notes, and snippets.

@LarsBergqvist
Created July 28, 2021 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LarsBergqvist/d24393e5b09fae9c7884f5339df31fdb to your computer and use it in GitHub Desktop.
Save LarsBergqvist/d24393e5b09fae9c7884f5339df31fdb to your computer and use it in GitHub Desktop.
deploy job
deploy:
needs: test-and-build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: build-artifacts
path: dist/gh-actions-example
- name: Deploy to gh-pages branch
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: dist/gh-actions-example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment