Skip to content

refactoring

refactoring #160

Workflow file for this run

name: CI-Release
on:
push:
branches: [master]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
smalltalk: [Squeak64-6.0]
env:
prerelease: ${{ !contains(github.event.head_commit.message, '[release]') }}
name: ${{ matrix.smalltalk }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-version: ${{ matrix.smalltalk }}
- run: smalltalkci -s ${{ matrix.smalltalk }} .smalltalk.release.ston
timeout-minutes: 15
- name: Get current time
uses: 1466587594/get-current-time@v1
id: current-time
with:
format: YYYYMMDD-HHmmss
utcOffset: "+01:00"
- name: Generate release name
uses: haya14busa/action-cond@v1
id: tag_prefix
with:
cond: ${{ env.prerelease }}
if_true: "Trunk"
if_false: ""
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag_prefix.outputs.value }}${{ steps.current-time.outputs.formattedTime }}
release_name: ${{ matrix.smalltalk }} ${{ steps.current-time.outputs.formattedTime }}
draft: false
prerelease: ${{ env.prerelease }}
- 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 }} # 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: /home/runner/.smalltalkCI/_builds/squello.sar
asset_name: squello.sar
asset_content_type: application/zip