mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
aee7ccab5d
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.4 to 4.1.5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](0ad4b8fada...44c2b7a8a4
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
37 lines
1.3 KiB
YAML
37 lines
1.3 KiB
YAML
name: Android
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
build-android:
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/jandedobbeleer/golang-android-container:latest
|
|
steps:
|
|
- name: Checkout code 👋
|
|
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
|
|
- name: Build
|
|
run: |
|
|
VERSION=$(echo "${{ github.event.release.name }}" | cut -c2-)
|
|
echo "Building version ${VERSION}"
|
|
cd src
|
|
go build -o dist/posh-android-arm -ldflags="-s -w -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Version=${VERSION}' -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Date=$(date)'"
|
|
- name: Upload artifacts 🆙
|
|
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
|
|
with:
|
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
|
script: |
|
|
console.log('environment', process.versions);
|
|
|
|
const fs = require('fs').promises;
|
|
|
|
const { repo: { owner, repo }, sha } = context;
|
|
console.log({ owner, repo, sha });
|
|
|
|
await github.rest.repos.uploadReleaseAsset({
|
|
owner, repo,
|
|
release_id: ${{ github.event.release.id }},
|
|
name: 'posh-android-arm',
|
|
data: await fs.readFile('./src/dist/posh-android-arm')
|
|
});
|