Skip to content

Commit

Permalink
deployment test #4
Browse files Browse the repository at this point in the history
  • Loading branch information
folland87 committed Mar 26, 2024
1 parent 8294e33 commit 0c20631
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 32 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/main.yml

This file was deleted.

32 changes: 27 additions & 5 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Build and deploy production

on:
workflow_run:
workflows: ["Bump"]
types:
- completed
push:
branches:
- "main"

env:
DEPLOYMENT: scanr-next-gen
Expand All @@ -13,8 +12,31 @@ env:
MM_NOTIFICATION_CHANNEL: bots

jobs:
bump:
name: 🏷️ Bump npm version
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}

- name: Automated Version Bump
uses: phips28/gh-action-bump-version@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
minor-wording: 'MINOR'
major-wording: 'MAJOR'
patch-wording: 'PATCH'
tag-prefix: 'v'
check-last-commit-only: 'true'
PACKAGEJSON_DIR: 'client'

publish-ghcr:
name: 🐳 Publish Docker
runs-on: ubuntu-latest
needs: bump
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down Expand Up @@ -49,7 +71,7 @@ jobs:
docker push --all-tags $IMAGE_ID
release:
name: Create new Github release
name: 🚀 Create release
runs-on: ubuntu-latest
needs: publish-ghcr
steps:
Expand Down

0 comments on commit 0c20631

Please sign in to comment.