Skip to content

Commit

Permalink
updated build plugin script
Browse files Browse the repository at this point in the history
should only create release from singular file on tag
  • Loading branch information
FreedomFaighter committed Oct 28, 2023
1 parent 2099f2e commit db3e5d1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 55 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/build-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ on:
push:
branches:
- '*'
tags-ignore:
- '*'
tags:
- "0.*.*.*"
pull_request:
branches: [ EQDPSPlugin ]
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -68,3 +68,25 @@ jobs:
details: Test Cancelled!
text: ACT EverQuest DPS Plugin .NET Framework Version ${{ matrix.dotnetFrameworkVersion }}
webhookUrl: ${{ secrets.ACT_EQ_DISCORD_WEBHOOK }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
if: github.ref_type == 'tag'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
if: github.ref_type == 'tag'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: .\EverQuestDPSPlugin\obj\Release\EverQuestDPSPlugin.dll
asset_name: EverQuestDPSPlugin.dll
asset_content_type: application/dll
52 changes: 0 additions & 52 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit db3e5d1

Please sign in to comment.