-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 1.12 KB
/
deploy.yml
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
39
name: Deploy
on:
workflow_dispatch:
env:
GIT_CONFIG_NAME: github-actions
GIT_CONFIG_EMAIL: [email protected]
GIT_COMMIT_MSG: "[actions] deploy (${{ github.sha }})"
GIT_OUTPUT_DIR: dist
GIT_OUTPUT_BRANCH: dist
jobs:
deploy-store:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- name: 🚧 Do prerequisites
run: |
dart pub get
(cd ./packages/sora_builder; dart pub get)
- name: 🔨 Build store
run: dart run ./store/build.dart
- name: 🚀 Deploy
uses: zyrouge/github-push-action@v1
with:
local-username: ${{ env.GIT_CONFIG_NAME }}
local-email: ${{ env.GIT_CONFIG_EMAIL }}
commit-message: ${{ env.GIT_COMMIT_MSG }}
directory: ${{ env.GIT_OUTPUT_DIR }}
branch: ${{ env.GIT_OUTPUT_BRANCH }}
skip-fetch: true
checkout-orphan: true
force: true