Skip to content

Commit

Permalink
Merge pull request #265 from AskToni/ci/github-actions
Browse files Browse the repository at this point in the history
ci: github actions
  • Loading branch information
RedTn authored Dec 24, 2022
2 parents 1da8417 + dfc7069 commit 2a36457
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 98 deletions.
98 changes: 0 additions & 98 deletions .circleci/config.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/main.workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---

###########################################################################################
# This workflow runs for PRs and master.
###########################################################################################
name: Main

"on":
pull_request:
branches:
- master
push:
branches:
- master

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/erbium
- name: Install dependencies
run: yarn install
- name: Lint
run: yarn lint-ci
- name: Test
run: yarn ci-test
- name: Build
run: yarn build
- name: Deploy
if: github.ref == 'refs/heads/master'
run: yarn surge --project ./dist --domain asktoni.surge.sh --token ${{ secrets.SURGE_TOKEN }}

0 comments on commit 2a36457

Please sign in to comment.