Skip to content

Commit

Permalink
Use separate workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
nvdaes committed Mar 3, 2020
1 parent ec12258 commit 0499de7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/pythonapp.yml → .github/workflows/addon.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python application
name: Build NVDA add-on

on: [push]

Expand Down Expand Up @@ -29,16 +29,3 @@ jobs:
- name: Build add-on
run: |
scons
- name: Create Release
id: create_release
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
uses: actions/create-release@latest
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 }}
prerelease: endswith("$tag_name", "-dev"
body: |
Release created with GitHub Actions
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Create Release

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
build:
name: Create Release
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Create Release
id: create_release
uses: actions/create-release@latest
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: |
"${{ release_name }} created with GitHub actions"
draft: false
prerelease: endswith("${{ github.ref }}", "-dev")

0 comments on commit 0499de7

Please sign in to comment.