Skip to content

Commit 4248e25

Browse files
authored
chore: support to release via oras
1 parent 72296d8 commit 4248e25

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ jobs:
1818
steps:
1919
- name: Checkout
2020
uses: actions/[email protected]
21-
- name: Unshallow
22-
run: git fetch --prune --unshallow
21+
- name: Set output
22+
id: vars
23+
run: echo "tag=$(git describe --tags)" >> $GITHUB_OUTPUT
2324
- name: Set up Go
2425
uses: actions/setup-go@v3
2526
with:
@@ -31,6 +32,12 @@ jobs:
3132
args: release --rm-dist
3233
env:
3334
GITHUB_TOKEN: ${{ secrets.GH_PUBLISH_SECRETS }}
35+
- name: Upload via oras
36+
if: github.ref != 'refs/heads/master'
37+
run: |
38+
export TAG=${{ steps.vars.outputs.tag }}
39+
oras push ${{ env.REGISTRY_DOCKERHUB }}/linuxsuren/atest-ext-store-orm:${TAG#v} dist
40+
oras push ${{ env.REGISTRY }}/linuxsuren/atest-ext-store-orm:${TAG#v} dist
3441
3542
image:
3643
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)