Преглед на файлове

create release and upload escript for new tags

pull/2432/head
Tristan Sloughter преди 4 години
родител
ревизия
704e21b144
No known key found for this signature in database GPG ключ ID: 6BC93CF674613287
променени са 1 файла, в които са добавени 29 реда и са изтрити 16 реда
  1. +29
    -16
      .github/workflows/publish.yml

+ 29
- 16
.github/workflows/publish.yml Целия файл

@ -1,34 +1,47 @@
name: Publish
on:
release:
types: [published, created, edited]
push:
tags:
- '*'
jobs:
build:
name: Publish escript to release
name: Create release and publish escript for every new tag
runs-on: ubuntu-latest
container:
image: erlang:19
steps:
- uses: actions/checkout@v2
- uses: gleam-lang/setup-erlang@v1.0.0
with:
otp-version: 19.3.6.13
- name: Compile
run: ./bootstrap
- name: CT tests
run: ./rebar3 ct
# - name: Upload Release Asset
# id: upload-release-asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ github.event.release.upload_url }}
# asset_path: ./rebar3
# asset_name: rebar3
# asset_content_type: application/zip
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./rebar3
asset_name: rebar3
asset_content_type: application/octet-stream
- name: Configure AWS credentials
if: "!github.event.release.prerelease"

Зареждане…
Отказ
Запис