@@ -10,65 +10,89 @@ jobs:
1010 Release :
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v2
13+ - name : 🏁 Checkout
14+ uses : actions/checkout@v2
1415 with :
1516 persist-credentials : false
1617 fetch-depth : ' 0'
17- - uses : actions/setup-node@v2
18+
19+ - name : ✅ Setup node
20+ uses : actions/setup-node@v2
1821 with :
1922 node-version : ' 17'
20- - name : Bump version and push tag
23+
24+ - name : 🏷 Bump version and push tag
2125 uses : anothrNick/github-tag-action@1.36.0
2226 id : tagging
2327 env :
2428 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2529 WITH_V : true
26- - name : Build Changelog
30+
31+ - name : 📝 Build Changelog
2732 id : build_changelog
2833 uses : mikepenz/release-changelog-builder-action@v1
2934 env :
3035 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31- - name : Create Release
36+
37+ - name : 📦 Create Release
3238 uses : actions/create-release@v1
3339 with :
3440 release_name : ${{steps.tagging.outputs.tag}}
3541 body : ${{steps.build_changelog.outputs.changelog}}
3642 tag_name : ${{steps.tagging.outputs.tag}}
3743 env :
3844 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39- - name : Update npm package version
45+
46+ - name : ⬆️ Update npm package version
4047 uses : reedyuk/npm-version@1.1.1
4148 with :
4249 version : ${{steps.tagging.outputs.tag}}
43- - name : Commit files
50+
51+ - name : ➕ Commit files
4452 run : |
4553 git config --local user.email "jan.philip.wahle@gmail.com"
4654 git config --local user.name "github-actions[bot]"
4755 git add package.json
4856 git commit -m "[release-bot] Update npm version"
49- - name : Push changes
57+ - name : 💨 Push changes
5058 uses : ad-m/github-push-action@master
5159 with :
5260 github_token : ${{ secrets.ACCESS_TOKEN }}
5361 branch : ${{ github.ref }}
54- - name : Set up QEMU
62+
63+ - name : 🐳 Set up QEMU
5564 uses : docker/setup-qemu-action@v1
56- - name : Set up Docker Buildx
65+
66+ - name : 🐳 Set up Docker Buildx
5767 uses : docker/setup-buildx-action@v1
58- - name : Login to DockerHub
68+
69+ - name : 🔑 Login to DockerHub
5970 uses : docker/login-action@v1
6071 with :
6172 username : ${{ secrets.DOCKERHUB_USERNAME }}
6273 password : ${{ secrets.DOCKERHUB_TOKEN }}
63- - name : Build and push version
74+
75+ - name : 🐳 Build and push version
6476 uses : docker/build-push-action@v2
6577 with :
6678 context : .
6779 push : true
6880 tags : jpelhaw/nlp-land-frontend:${{steps.tagging.outputs.tag}}
69- - name : Build and push latest
81+
82+ - name : 🐳 Build and push latest
7083 uses : docker/build-push-action@v2
7184 with :
7285 context : .
7386 push : true
74- tags : jpelhaw/nlp-land-frontend:latest
87+ tags : jpelhaw/nlp-land-frontend:latest
88+
89+ - name : 🔑 Docker GitHub package login
90+ run : docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
91+
92+ - name : 🐳 Build docker image
93+ run : docker build -t ghcr.io/gipplab/cs-insights-frontend:${{steps.tagging.outputs.tag}} -t ghcr.io/gipplab/cs-insights-frontend:latest .
94+
95+ - name : 📦 Push docker image
96+ run : |
97+ docker push ghcr.io/gipplab/cs-insights-frontend:${{steps.tagging.outputs.tag}}
98+ docker push ghcr.io/gipplab/cs-insights-frontend:latest
0 commit comments