Skip to content

Commit

Permalink
try win
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed May 30, 2023
1 parent 66b9670 commit 0af8a7b
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Artifacts
name: Build artifacts

on:
workflow_dispatch:
inputs:
tag:
default: ''
push:
tags:
- '*'
branches:
- master
release:
types: [released]

defaults:
run:
Expand Down Expand Up @@ -47,6 +47,17 @@ jobs:
with:
path: dist/vyper.*

- name: Publish release assets
if: ${{ github.event_name == 'release' }}
run: |
export BIN_NAME=$(ls dist/vyper.* | xargs basename) && \
curl -L \
-X POST \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\
-H "Content-Type: application/octet-stream" \
"https://uploads.github.com/repos/${{ github.repository }}/releases/${{ github.event.release.id }}/assets?name=${BIN_NAME}" \
--data-binary "@dist/${BIN_NAME}"
windows-build:
runs-on: windows-latest

Expand Down Expand Up @@ -74,3 +85,15 @@ jobs:
uses: actions/upload-artifact@v3
with:
path: dist/vyper.*

- name: Publish release assets
if: ${{ github.event_name == 'release' }}
shell: bash
run: |
export BIN_NAME=$(ls dist/vyper.* | xargs basename)
curl -L \
-X POST \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\
-H "Content-Type: application/octet-stream" \
https://uploads.github.com/repos/${{ github.repository }}/releases/${{ github.event.payload.release.release_id }}/assets?name=$(BIN_NAME) \
--data-binary "@$(BIN_NAME)"

0 comments on commit 0af8a7b

Please sign in to comment.