feat: move to GitHub Actions

BREAKING CHANGE: The deployment method and configuration options have changed.
This commit is contained in:
dessant
2020-02-17 08:56:39 +02:00
parent 4f8b60f58f
commit eb01523c24
21 changed files with 4728 additions and 5376 deletions

14
.github/workflows/lock.yml vendored Normal file
View File

@@ -0,0 +1,14 @@
name: 'Lock threads'
on:
schedule:
- cron: '0 0 * * *'
jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
with:
github-token: ${{ github.token }}
issue-lock-inactive-days: '180'

24
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Create release
on:
create:
tags:
- 'v*.*'
jobs:
release:
name: Release on GitHub
runs-on: ubuntu-18.04
if: contains(github.ref, '.')
steps:
- name: Create GitHub release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: >
Learn more about this release from the [changelog](https://github.com/dessant/lock-threads/blob/master/CHANGELOG.md#changelog).
draft: true