Skip to content

small formatting fixes #196

small formatting fixes

small formatting fixes #196

Workflow file for this run

name: CI-Release
on:
push:
branches: [master, develop]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
smalltalk: [Squeak64-6.0]
env:
prerelease: ${{ github.ref != 'refs/heads/master' }}
name: ${{ matrix.smalltalk }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-image: ${{ 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/TelegramClient.sar
asset_name: TelegramClient.sar
asset_content_type: application/zip