Skip to content

Commit d5030e5

Browse files
committed
feat: add GitHub deployment environments for containers, docs, and homebrew
1 parent 9c62fce commit d5030e5

4 files changed

Lines changed: 29 additions & 3 deletions

File tree

.github/workflows/deploy-tap.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
permissions:
2929
contents: write
3030
pull-requests: write
31+
environment:
32+
name: homebrew
33+
url: https://github.com/MFlowCode/homebrew-mfc
3134
steps:
3235
- name: Checkout MFC repository
3336
uses: actions/checkout@v4

.github/workflows/docker.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ jobs:
135135
manifests:
136136
runs-on: ubuntu-latest
137137
needs: Container
138+
environment:
139+
name: containers
140+
url: https://hub.docker.com/r/mflowcode/mfc
138141
steps:
139142
- name: Login to Docker Hub
140143
uses: docker/login-action@v3

.github/workflows/docs.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ on:
99
pull_request:
1010

1111
jobs:
12-
docs:
13-
name: Build & Publish
12+
build:
13+
name: Build & Verify
1414
runs-on: ubuntu-latest
1515

1616
steps:
@@ -73,8 +73,25 @@ jobs:
7373
args: -c .lychee.toml build/install/docs/mfc/
7474
fail: true
7575

76+
publish:
77+
name: Publish
78+
runs-on: ubuntu-latest
79+
needs: build
80+
if: github.repository == 'MFlowCode/MFC' && github.ref == 'refs/heads/master' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
81+
environment:
82+
name: docs
83+
url: https://mflowcode.github.io/
84+
85+
steps:
86+
- uses: actions/checkout@v4
87+
88+
- name: Download Built Documentation Artifact
89+
uses: actions/download-artifact@v4
90+
with:
91+
name: mfc-docs
92+
path: build/install/docs/mfc
93+
7694
- name: Publish Documentation
77-
if: github.repository == 'MFlowCode/MFC' && github.ref == 'refs/heads/master' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' )
7895
run: |
7996
set +e
8097
git ls-remote "${{ secrets.DOC_PUSH_URL }}" -q

.github/workflows/homebrew-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
update-homebrew-tap:
2626
name: Update homebrew-mfc tap
2727
runs-on: ubuntu-latest
28+
environment:
29+
name: homebrew
30+
url: https://github.com/MFlowCode/homebrew-mfc
2831

2932
steps:
3033
- name: Determine version

0 commit comments

Comments
 (0)