fix: add send precheck msg #60
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: release-message-nest | |
on: | |
push: | |
# run only against tags | |
tags: | |
- '*' | |
# workflow_dispatch: # | |
permissions: | |
contents: write | |
# packages: write | |
# issues: write | |
jobs: | |
build-and-release-message-nest: | |
runs-on: ubuntu-latest | |
env: | |
NODE_ENV: prod | |
CUSTOM_PROJ_NAME: Message-Nest | |
DOCKER_IMAGE_NAME: message-nest | |
steps: | |
- uses: actions/checkout@main | |
with: | |
fetch-depth: 0 | |
- run: git fetch --force --tags | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Docker Login | |
uses: docker/login-action@v3 | |
with: | |
registry: docker.io | |
username: ${{ secrets.DOCKER_USER }} | |
password: ${{ secrets.DOCKER_PASSWD }} | |
- uses: actions/setup-go@main | |
with: | |
go-version: '>=1.20.2' | |
cache: true | |
- name: Install npm dependencies | |
run: npm i | |
working-directory: web/ | |
- name: Run npm build | |
run: export NODE_ENV=prod && npm run build | |
working-directory: web/ | |
- name: Check build static | |
run: ls dist/ -la | |
working-directory: web/ | |
- name: Git File Restore | |
run: git checkout . | |
working-directory: web/ | |
# More assembly might be required: Docker logins, GPG, etc. It all depends | |
# on your needs. | |
- uses: goreleaser/goreleaser-action@v5 | |
with: | |
# either 'goreleaser' (default) or 'goreleaser-pro': | |
distribution: goreleaser | |
version: latest | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} | |
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' | |
# distribution: | |
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} | |