diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/addon.yml similarity index 60% rename from .github/workflows/pythonapp.yml rename to .github/workflows/addon.yml index 7c50650f..17e9b584 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/addon.yml @@ -1,4 +1,4 @@ -name: Python application +name: Build NVDA add-on on: [push] @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..5dfa608a --- /dev/null +++ b/.github/workflows/release.yml @@ -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")