Skip to content

Commit

Permalink
draft action workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
duksis committed May 29, 2024
1 parent 01713f7 commit b1661df
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 17 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on:
push:
tags:
- 'v*'

name: Create Release

jobs:
build:
name: Create Release
runs-on: macos-14
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Changes in this Release
- First Change
- Second Change
draft: true
prerelease: false
- name: Build
run: sh scripts/package_dmg.sh
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/lock.dmg
asset_name: lock.dmg
asset_content_type: application/octet-stream
- name: Publish release
uses: StuYarrow/publish-release@v1.1.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
id: ${{ steps.create_release.outputs.id }}
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run Tests

on: push

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/cache@v4
id: cache
with:
path: ./shellcheck-latest
key: ${{ runner.os }}-shellcheck

- name: Install shellcheck
if: steps.cache.outputs.cache-hit != 'true'
run: sh ./scripts/install_shellcheck.sh

- name: Execute shellcheck
run: ./shellcheck-latest/shellcheck Lock.app/Contents/MacOS/main.command scripts/*

- name: Save to cache
if: steps.cache.outputs.cache-hit != 'true'
id: cache-save
uses: actions/cache/save@v4
with:
path: ./shellcheck-latest
key: ${{ steps.cache.outputs.cache-primary-key }}
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

0 comments on commit b1661df

Please sign in to comment.