Skip to content

New: add auth and configs to host in cloud (#12) #18

New: add auth and configs to host in cloud (#12)

New: add auth and configs to host in cloud (#12) #18

Workflow file for this run

name: SemanticRelease
on:
workflow_dispatch:
push:
branches:
- master
tags:
- "*.*.*"
jobs:
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/heads/')
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
notify:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Extract tag name
id: tag
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Discord notification
uses: Ilshidur/action-discord@master
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
with:
args: "Version {{ TAG_NAME }} of {{ EVENT_PAYLOAD.repository.full_name }} has been released!"
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --local-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}