feat: add new microcenters locations, more 4090 GPUs, fixed incorrect… #326
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 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Create release | |
runs-on: ubuntu-latest | |
outputs: | |
release_created: ${{ steps.release.outputs.release_created }} | |
tag_name: ${{ steps.release.outputs.tag_name }} | |
tag_name_no_v: ${{ steps.normalize_tag.outputs.tag_name_no_v }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Run release-please | |
uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
release-type: node | |
changelog-path: CHANGELOG.md | |
package-name: streetmerchant | |
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false},{"type":"ci","section":"Continuous Integration","hidden":false},{"type":"docs","section":"Documentation","hidden":false},{"type":"refactor","section":"Refactoring","hidden":false},{"type":"perf","section":"Performance","hidden":false},{"type":"test","section":"Tests","hidden":false}]' | |
- name: Normalize tag name | |
if: steps.release.outputs.release_created == 'true' | |
id: normalize_tag | |
run: | | |
tag=${{ steps.release.outputs.tag_name }} | |
echo "tag_name_no_v=${tag#v}" >> "$GITHUB_OUTPUT" | |
build_tag_publish: | |
name: Build, tag, and publish | |
runs-on: ubuntu-latest | |
needs: release | |
if: needs.release.outputs.release_created == 'true' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
push: true | |
tags: "ghcr.io/jef/streetmerchant:latest,ghcr.io/jef/streetmerchant:${{ needs.release.outputs.tag_name_no_v }}" |