-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (30 loc) · 999 Bytes
/
publish-tier2.yml
File metadata and controls
37 lines (30 loc) · 999 Bytes
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
name: Publish Tier 2
on:
push:
tags:
- 'Release-Tier2/[0-9]+.[0-9]+.[0-9]+*'
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
environment: pub.dev-tier2
steps:
- name: Extract version
id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/Release-Tier2/}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout release branch
run: |
git fetch origin "release/${{ steps.version.outputs.VERSION }}"
git checkout "release/${{ steps.version.outputs.VERSION }}"
- uses: ./.github/actions/setup
with:
dart-version: ${{ vars.DART_VERSION }}
- name: Publish packages
run: |
chmod +x .github/scripts/publish-packages.sh
.github/scripts/publish-packages.sh "${{ steps.version.outputs.VERSION }}" reflux dart_node_express dart_node_ws dart_node_better_sqlite3 dart_node_mcp