Compare commits

...
8 Commits
Author SHA1 Message Date
ari 7e5885a34d added manual 2022-05-16 12:46:14 -04:00
ari 38396c4d98 added manual 2022-05-16 12:45:31 -04:00
ari ea832884f1 fixed deploy 2022-05-16 12:45:02 -04:00
ari ea14cd4239 trying autogenerated release 2022-05-16 12:44:25 -04:00
ari 4e19bdf4c4 changed up paths 2022-05-16 12:43:12 -04:00
Ari Sosnovsky 75c5870e00 Update config.yaml 2022-05-16 12:03:26 -04:00
Ari Sosnovsky 4b75ac9199 Update README.md 2022-05-16 11:14:11 -04:00
Ari Sosnovsky fd3780f5bc Update CHANGELOG.md 2022-05-16 11:13:49 -04:00
6 changed files with 31 additions and 8 deletions

No files matched your search

+25 -3
View File
@@ -2,8 +2,12 @@ name: Deploy
env: env:
MONITORED_FILES: "apparmor.txt build.yaml config.yaml Dockerfile data rootfs" MONITORED_FILES: "apparmor.txt build.yaml config.yaml Dockerfile data rootfs"
on: on:
release: # release:
types: [published] # types: [published]
workflow_dispatch:
push:
paths:
- 'config.yaml'
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -16,15 +20,33 @@ jobs:
- name: Check out repository - name: Check out repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Get Version
id: version
shell: bash
run: |
echo ::set-output name=VERSION::$(cat config.yaml | sed -nr 's/version: (.*)/\1/p')
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v2.0.0 uses: docker/login-action@v2.0.0
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: ${{ github.ref }} / ${{ matrix.arch }} - name: ${{ steps.version.outputs.VERSION }} / ${{ matrix.arch }}
uses: home-assistant/builder@2022.03.1 uses: home-assistant/builder@2022.03.1
with: with:
args: | args: |
--${{ matrix.arch }} \ --${{ matrix.arch }} \
--target . --target .
- name: Publish Release ${{ steps.version.outputs.VERSION }}
uses: actions/github-script@v6
env:
VERSION: ${{ steps.version.outputs.VERSION }}
with:
script: |
github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: process.env.VERSION,
});
+1
View File
@@ -0,0 +1 @@
.vscode/*.log
+1 -1
View File
@@ -1,4 +1,4 @@
# Changelog # Changelog -- [![GitHub version](https://badge.fury.io/gh/asosnovsky%2FShortumation.svg)](https://badge.fury.io/gh/asosnovsky%2FShortumation)
## [0.1.2] - Docker Hub Images ## [0.1.2] - Docker Hub Images
+1 -1
View File
@@ -1,4 +1,4 @@
# Shortumation # Shortumation [![GitHub version](https://badge.fury.io/gh/asosnovsky%2FShortumation.svg)](https://badge.fury.io/gh/asosnovsky%2FShortumation)
![image](https://user-images.githubusercontent.com/7451445/167028000-41528244-47be-408e-8f47-55187c0e5dcd.png) ![image](https://user-images.githubusercontent.com/7451445/167028000-41528244-47be-408e-8f47-55187c0e5dcd.png)
+1 -1
View File
@@ -1,5 +1,5 @@
name: Shortumation name: Shortumation
version: 0.1.2 version: 0.1.3
slug: shortumation slug: shortumation
image: asosnovsky/shortumation-{arch} image: asosnovsky/shortumation-{arch}
url: "https://github.com/asosnovsky/Shortumation" url: "https://github.com/asosnovsky/Shortumation"
+2 -2
View File
@@ -1,4 +1,4 @@
export const AUTOMTAION_ROOT = '/' as const; export const AUTOMTAION_ROOT = '' as const;
export const AUTOMTAION_LIST = `${AUTOMTAION_ROOT}list` as const; export const AUTOMTAION_LIST = `${AUTOMTAION_ROOT}/list` as const;