Skip to content

Merge remote-tracking branch 'origin/main' #87

Merge remote-tracking branch 'origin/main'

Merge remote-tracking branch 'origin/main' #87

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
#pull_request:
# branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# 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 "build"
build:
# 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
- name: Checkout
uses: actions/checkout@v2
- name: Prepare CI
run: yarn
- name: Build svelte
run: yarn build
- name: Add .nojekyll
run: touch public/.nojekyll
- name: Add routers' html files
run: bash add-routers-html.sh -xe
- name: Deploy with GitHub Pages v3
uses: peaceiris/actions-github-pages@v3.1.12
with:
publish_dir: public/
github_token: ${{ secrets.SGICPC_API_KEY }}
#- name: Login to DockerHub
# uses: docker/login-action@v1.9.0
# with:
# username: ${{ secrets.DOCKER_HUB_ID }}
# password: ${{ secrets.DOCKER_HUB_PASSWORD }}
#- name: Build and push Docker images
# You may pin to the exact commit or the version.
# uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
# uses: docker/build-push-action@v2.5.0
# with:
# # Path to the Dockerfile
# file: ./Dockerfile
# push: true
# tags: 20sgicpc/sgicpc-official-website:latest