components/waydroid-image.bst: #40 updated waydroid images #571
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build And Release | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
- .github/workflow/update-docs.yml | |
workflow_dispatch: | |
env: | |
BST: bst --colors --builders 1 | |
jobs: | |
generate-cache: | |
name: Generate Cache | |
runs-on: self-hosted | |
timeout-minutes: 46000 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Build System Repository | |
run: ${BST} -o variant experimental build system/repo.bst | |
checkout-experimental: | |
name: Checkout Experimental | |
runs-on: self-hosted | |
timeout-minutes: 46000 | |
needs: generate-cache | |
environment: EXPERIMENTAL | |
env: | |
OSTREE_REPO: ${{ secrets.OSTREE_REPO }} | |
OSTREE_GPG: ${{ secrets.OSTREE_GPG }} | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Build Installer ISO | |
run: ${BST} -o variant experimental build installer/image.bst | |
- name: Checkout Image | |
run: ${BST} -o variant experimental artifact checkout installer/image.bst --directory ${{ secrets.DAILY_DIR }} --force | |
- name: Generate Changelog | |
run: echo "${{ github.event.head_commit.message }}" > commit_body | |
- name: Update ostree | |
run: VARIANT="experimental" REF="system/repo.bst" make update-ostree | |
release: | |
name: Release | |
runs-on: self-hosted | |
needs: checkout-experimental | |
environment: RELEASE | |
if: github.ref == 'refs/heads/stable' | |
strategy: | |
matrix: | |
variant: | |
- desktop | |
- workstation | |
env: | |
RELEASE_DIR: ${{ secrets.RELEASE_DIR }} | |
OSTREE_REPO: ${{ secrets.OSTREE_REPO }} | |
OSTREE_GPG: ${{ secrets.OSTREE_GPG }} | |
MIRROR_DIR: ${{ secrets.MIRROR }} | |
steps: | |
- uses: actions/checkout@v1 | |
- name: BUILD | |
run: ${BST} -o variant ${{matrix.variant}} build installer/image.bst | |
- name: Checkout Image | |
run: ${BST} -o variant ${{matrix.variant}} artifact checkout installer/image.bst --directory $RELEASE_DIR --force | |
- name: Generate Changelog | |
run: echo "${{ github.event.head_commit.message }}" > commit_body | |
- name: Update ostree | |
run: VARIANT="${{matrix.variant}}" REF="system/repo.bst" make update-ostree | |
- name: Syncing Mirror | |
run: rsync -avW --inplace --progress ${RELEASE_DIR} ${MIRROR_DIR} | |
publish: | |
name: Publish On social media | |
runs-on: self-hosted | |
needs: release | |
environment: POST | |
env: | |
COMMUNITY_TOKEN: ${{ secrets.COMMUNITY_TOKEN }} | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Send Telegram Notification | |
uses: appleboy/telegram-action@master | |
with: | |
to: ${{ secrets.TELEGRAM_TO }} | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
message: | | |
${{ github.event.commits[0].message }} | |
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}} | |
# - name: send Twitter Notification | |
# uses: ethomson/send-tweet-action@v1 | |
# with: | |
# status: | | |
# ${{ github.event.commits[0].message }} | |
# See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}} | |
# consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }} | |
# consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} | |
# access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }} | |
# access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} | |
# - name: Update community.rlxos.dev | |
# run: | | |
# curl -X POST https://community.rlxos.dev/api/discussions -H "Authorization: Token ${COMMUNITY_TOKEN}" -H "Content-Type: application/json" -d '{"data": {"attributes": {"title": "${{ github.event.commits[0].message }}", "content": "see changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}"}, "type": "disucssions"}}' | |
- uses: bluwy/release-for-reddit-action@v1 | |
with: | |
username: ${{ secrets.REDDIT_USERNAME }} | |
password: ${{ secrets.REDDIT_PASSWORD }} | |
app-id: ${{ secrets.REDDIT_APP_ID }} | |
app-secret: ${{ secrets.REDDIT_APP_SECRET }} | |
subreddit: rlxos_dev | |
url: https://rlxos.dev/ | |
title: ${{ github.event.commits[0].message }} | |
comment: 'see changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}' |