Strip modules to save space #9
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: testing | |
on: | |
push: | |
branches: | |
- testing | |
jobs: | |
testing: | |
name: Build and publish the testing channel | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout the Git repository | |
uses: actions/checkout@v3 | |
- name: Setup Toltec dependencies | |
uses: ./.github/actions/setup | |
- name: Build packages | |
run: | | |
make repo FLAGS='--remote-repo ${{ secrets.REMOTE_HTTP }}/testing' | |
- name: Sync packages with the remote repository | |
uses: ./.github/actions/sync-repository | |
with: | |
local-path: build/repo/ | |
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
ssh-known-hosts: ${{ secrets.SSH_KNOWN_HOSTS }} | |
ssh-port: ${{ secrets.SSH_PORT }} | |
remote-path: ${{ secrets.REMOTE_SSH }}:/srv/toltec/testing | |
- name: Send notification to Discord | |
continue-on-error: true | |
uses: ./.github/actions/discord-send | |
with: | |
channel: ${{ secrets.DISCORD_TESTING_CHANNEL_ID }} | |
token: ${{ secrets.DISCORD_TESTING_CHANNEL_TOKEN }} | |
title: New Toltec testing update available | |
link: https://toltec-dev.org/testing | |
color: 0xe3b341 | |
message: ${{ github.event.commits[0].message }} |