Skip to content

Commit

Permalink
more packager updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaildon committed Apr 6, 2020
1 parent 6d69c7e commit 060f2df
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 34 deletions.
40 changes: 31 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,41 @@ jobs:
- name: validate code
run: luacheck --config .luacheckrc .

release:
name: release
wowi_publish:
name: wowinterface publish
runs-on: ubuntu-latest
needs: luacheck
if: contains(github.ref, 'refs/tags')
steps:
- name: checkout
uses: actions/checkout@v2

- name: echo
run: echo "would release"

# - name: wowinterface release
# env:
# WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }}
# run: curl -s https://raw.githubusercontent.com/BigWigsMods/packager/master/release.sh | bash
- name: wowinterface release
env:
WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }}
run: curl -s https://raw.githubusercontent.com/BigWigsMods/packager/master/release.sh | bash

- name: get version
id: vars
run: echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//}

- name: create github release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.vars.outputs.tag }}
release_name: ${{ steps.vars.outputs.tag }}
draft: false
prerelease: false

- name: upload github release
uses: actions/upload-release-asset@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./.release/sInterface-${{ steps.vars.outputs.tag }}.zip
asset_name: sInterface-${{ steps.vars.outputs.tag }}.zip
asset_content_type: application/zip
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

0 comments on commit 060f2df

Please sign in to comment.