hpi-swa-lab / SqueakByExample-english

An introductory book about the Squeak/Smalltalk programming system, guiding students and developers through the environment, language, tools, and the Morphic framework by means of a series of examples and exercises.
https://www.lulu.com/shop/patrick-rein-and-christoph-thiede/squeak-by-example-60/paperback/product-8vr2j2.html
Other
24 stars 6 forks source link

Automate prereleases + update documentation of the build process #104

Closed LinqLover closed 3 years ago

LinqLover commented 3 years ago
LinqLover commented 3 years ago

I also converted all existing "untagged" releases into prereleases:

client := WebClient new
    token: githubOauthToken;
    yourself.

releases := Json readFrom: (client httpGet: 'https://api.github.com/repos/hpi-swa-lab/SqueakByExample-english/releases') content readStream.

releases
    select: [:release | ((release tag_name ifNil: ['']) startsWith: 'untagged-')
        and: [release prerelease not]]
    thenDo: [:release | self assert: (client httpPost: 'https://api.github.com/repos/hpi-swa-lab/SqueakByExample-english/releases/' , release id content: (JsonObject new at: #prerelease put: true; asJsonString) type: 'application/vnd.github.v3+json' do: [:req | req headerAt: 'Authorization' put: 'token ', client token]) isSuccess]

🤓