Skip to content

Commit

Permalink
use gh ci for build
Browse files Browse the repository at this point in the history
  • Loading branch information
istudyatuni committed Oct 11, 2023
1 parent b559e53 commit c74fc72
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 36 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and deploy
on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
- run: yarn install --frozen-lockfile
- name: build
shell: bash
env:
owm: ${{ secrets.OWM_KEY }}
tg_token: ${{ secrets.TG_TOKEN }}
run: |
yarn build
touch build/.nojekyll
echo "$owm\n$tg_token" > build/key.txt
echo "$(date -R -u)" > build/version.txt
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build
force_orphan: true
36 changes: 0 additions & 36 deletions scripts/deploy.sh

This file was deleted.

0 comments on commit c74fc72

Please sign in to comment.