Skip to content

Commit

Permalink
ci: migrate from CircleCI to GithubActions
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatWizard committed Aug 22, 2023
1 parent c6a23ff commit 6409f6d
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 78 deletions.
78 changes: 0 additions & 78 deletions .circleci/config.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14.x
cache: yarn
- name: Yarn Install
run: yarn install
- name: Build
run: yarn build
- name: Wait on tests
uses: lewagon/[email protected]
with:
ref: master
check-name: test
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
- name: Clean ftp
uses: StephanThierry/[email protected]
with:
host: ${{ secrets.FTP_SERVER }}
user: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
workingDir: /
remoteFiles: "*.xml;facivon.ico;*.html;manifest.webmanifest;robots.txt;.ftp-deploy-sync-state.json"
remoteDirectories: "assets"
- name: Deploy on ftp
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: dist/
server-dir: /
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14.x
cache: yarn
- name: Yarn Install
run: yarn install --frozen-lockfile
- name: Test
run: yarn test

0 comments on commit 6409f6d

Please sign in to comment.