Skip to content

Commit

Permalink
Create
Browse files Browse the repository at this point in the history
  • Loading branch information
hajime-miyauchi committed Jan 4, 2020
1 parent 81a6c1f commit 9b1c9b7
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

name: Upload Release Asset

jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: false
- uses: actions/download-artifact@v1
with:
name: shp2mysql-win-64
- name: Archive Windows
run: |
zip --junk-paths -r shp2mysql-win-64
- uses: actions/download-artifact@v1
with:
name: shp2mysql-source
- name: Archive Source
run: |
tar -zcvf shp2mysql-source.tar.gz shp2mysql-source
- name: Upload Release Asset
id: upload-release-asset1
uses: actions/[email protected]
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: ./shp2mysql-win-64.zip
asset_name: shp2mysql-win-64.zip
asset_content_type: application/zip
- name: Upload Release Asset
id: upload-release-asset2
uses: actions/[email protected]
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: ./shp2mysql-source.tar.gz
asset_name: shp2mysql-source.tar.gz
asset_content_type: application/gzip

0 comments on commit 9b1c9b7

Please sign in to comment.