1.4.1 (#37) #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Setup .npmrc file to publish to npm | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
registry-url: 'https://registry.npmjs.org/' | |
- name: Install dependencies | |
run: yarn install | |
- name: Publish package | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
build: | |
runs-on: ubuntu-latest | |
name: Build Docker Image | |
needs: publish | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get version | |
id: get_version | |
run: echo "::set-output name=tag::$(echo "${{ github.REF }}" | sed -e 's|^refs/tags/||')" | |
- name: Login Docker | |
run: docker login --username hestudio --password ${{ secrets.DOCKER_PASSWORD }} | |
- run: docker build . --file Dockerfile --tag hestudio/bingwallpaper_get:${{ steps.get_version.outputs.tag }} | |
- run: docker build . --file Dockerfile --tag hestudio/bingwallpaper_get | |
- run: docker push hestudio/bingwallpaper_get:${{ steps.get_version.outputs.tag }} | |
- run: docker push hestudio/bingwallpaper_get | |