Skip to content

Publish npm v2.7.0 (#192) #1

Publish npm v2.7.0 (#192)

Publish npm v2.7.0 (#192) #1

Workflow file for this run

name: release
on:
push:
branches:
- main
jobs:
release:
if: contains(github.event.head_commit.message, '[skip ci]') == false && contains(github.event.head_commit.message, 'Publish npm') == false
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Automated Versioning and Changelog
uses: GoogleCloudPlatform/release-please-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: docker-wechatbot-webhook
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"refactor","section":"Refactor","hidden":false},{"type":"perf","section":"Performance Improvements","hidden":false}]'
build-and-push:
needs: release
runs-on: ubuntu-latest
if: "${{contains(github.event.head_commit.message, 'chore(main): release')}}"
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: dannicool
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: dannicool/docker-wechatbot-webhook:latest
platforms: linux/amd64,linux/arm64