-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (37 loc) · 1.03 KB
/
githubpages.yml
File metadata and controls
38 lines (37 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Deploy to GitHub Pages
# on:
# push:
# branches:
# - master
on:
workflow_dispatch:
# Inputs the workflow accepts.
inputs:
type:
# Friendly description to be shown in the UI instead of 'name'
description: 'Release Type'
# Default value if no value is explicitly provided
default: 'Web'
# Input has to be provided for the workflow to run
required: false
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
# flutter-version: '2.0.5'
- run: flutter pub get
# - run: flutter test
- run: flutter build -v web --release
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: git@github.com:tg21/tg21.github.io.git
BRANCH: master
FOLDER: build/web/
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_PRIVATE_KEY }}