Skip to content

Commit 2ae5e8b

Browse files
author
Alexander Bainczyk
committed
update release workflow
1 parent c6be072 commit 2ae5e8b

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
name: Release
22

33
on:
4-
push:
5-
tags:
6-
- "v*"
74
workflow_dispatch:
85

96
jobs:
107
release-cli-to-npm:
118
runs-on: ubuntu-latest
129
steps:
13-
- uses: actions/checkout@v2
10+
- name: Checkout repository
11+
uses: actions/checkout@v2
1412

15-
- uses: actions/setup-node@v1
13+
- name: Setup NodeJS
14+
uses: actions/setup-node@v1
1615
with:
1716
node-version: 14
1817
registry-url: https://registry.npmjs.org/
19-
- run: cd cli
20-
- run: npm ci
21-
- run: npm publish
18+
19+
- name: Publish CLI
20+
run: cd cli && npm ci && npm publish
2221
env:
2322
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
2423

@@ -36,9 +35,7 @@ jobs:
3635
for img in $IMAGES
3736
do
3837
echo "ghcr.io/learnlib/alex/$img:$VERSION"
39-
docker pull "ghcr.io/learnlib/alex/$img:unstable"
40-
docker tag "ghcr.io/learnlib/alex/$img:unstable" "ghcr.io/learnlib/alex/$img:$VERSION"
41-
docker tag "ghcr.io/learnlib/alex/$img:unstable" "ghcr.io/learnlib/alex/$img:latest"
38+
docker pull "ghcr.io/learnlib/alex/$img:latest"
39+
docker tag "ghcr.io/learnlib/alex/$img:latest" "ghcr.io/learnlib/alex/$img:$VERSION"
4240
docker push "ghcr.io/learnlib/alex/$img:$VERSION"
43-
docker push "ghcr.io/learnlib/alex/$img:latest"
4441
done

0 commit comments

Comments
 (0)