Skip to content

Commit

Permalink
New: add semantic-release to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cbackas committed Jul 19, 2023
1 parent b11341f commit 0c9cb18
Show file tree
Hide file tree
Showing 6 changed files with 5,923 additions and 188 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/dockerhub-ci.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Pull Request

on:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

# just check that it builds, dont push it anywhere cuz whatever
- name: Build and push
uses: docker/build-push-action@v3
with:
push: false
tags: cbackas/tvbot:pr
40 changes: 40 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: SemanticRelease

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Setup Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18

- name: Install Semantic Release
run: npm install semantic-release @codedependant/semantic-release-docker conventional-changelog-eslint

- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
DOCKER_REGISTRY_USER: ${{ github.actor }}
DOCKER_REGISTRY_PASSWORD: ${{ secrets.GHCR_TOKEN }}
run: npx semantic-release

- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_ICON: https://avatars.githubusercontent.com/u/9919?s=200&v=4
SLACK_USERNAME: GitHub Actions
SLACK_COLOR: ${{ job.status }}
SLACK_FOOTER: ""
Loading

0 comments on commit 0c9cb18

Please sign in to comment.