Skip to content

Commit

Permalink
ci: update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jcwillox committed Jun 10, 2024
1 parent 3e87c84 commit 2817577
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 66 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Publish"

on:
release:
types: [published]

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: "Checkout the repository"
uses: actions/checkout@v4

- name: "Get addon information and update build args"
id: information
uses: ./.github/actions/addon-info

- name: "Login to GitHub Container Registry"
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: "Publish"
uses: home-assistant/builder@master
with:
args: |
--all \
--target rclone_backup \
--image ${{ steps.information.outputs.image }} \
--docker-hub ${{ steps.information.outputs.repository }}
46 changes: 46 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "Release"

on:
push:
branches:
- "beta"
- "alpha"
workflow_dispatch:
inputs:
draft:
type: boolean
description: "Draft release"
default: false
release_type:
type: choice
description: "Release type"
default: "auto"
options:
- "auto"
- "patch"
- "minor"
- "major"

jobs:
publish:
name: "Publish"
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: "Checkout the repository"
uses: actions/checkout@v4

- name: "Setup node"
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: "Release Package 📦"
run: corepack enable && pnpm dlx @jcwillox/semantic-release-config
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SEMANTIC_RELEASE_GITHUB_DRAFT: ${{ inputs.draft }}
SEMANTIC_RELEASE_FORCE_RELEASE: ${{ inputs.release_type }}
53 changes: 0 additions & 53 deletions .github/workflows/release.yml

This file was deleted.

File renamed without changes.
13 changes: 0 additions & 13 deletions rclone_backup/CHANGELOG.md

This file was deleted.

0 comments on commit 2817577

Please sign in to comment.