Skip to content

Commit

Permalink
I hope deployment works from the first try
Browse files Browse the repository at this point in the history
(Almost impossible)
  • Loading branch information
Rami-Sabbagh committed Jun 22, 2022
1 parent 2d219b1 commit 4b1a94b
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy Application

# Controls when the workflow will run
on:
# Triggers the workflow only on tags creation
create:
ref_type: tag

# 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 "generate-docs"
generate-docs:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 16.x

- name: Install the dependencies
run: yarn

- name: Build the application
run: yarn build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
force_orphan: true

0 comments on commit 4b1a94b

Please sign in to comment.