Add files via upload #18
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: Deploy APT Repository | |
on: | |
push: | |
branches: [ "master" ] | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: pages | |
cancel-in-progress: false | |
jobs: | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- id: configure_pages | |
uses: actions/configure-pages@v3 | |
- name: Install Dependencies | |
run: sudo apt update && sudo apt install -y reprepro | |
- name: Import GPG Private Key | |
run: echo "$GPG_PRIVATE_KEY" | gpg --import | |
env: | |
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | |
- name: Download Releases | |
run: | | |
mkdir -p debs/jammy && cd debs/jammy | |
../../scripts/download-release.sh tutrobo/jsk_visualization 20230818 | |
../../scripts/download-release.sh tutrobo/casadi_vendor 20230818 | |
../../scripts/download-release.sh tutrobo/Groot 20230820 | |
../../scripts/download-release.sh tutrobo/igh-ethercat debian/1.5.2-2 | |
- name: Generate APT Repository | |
run: scripts/generate-repo.sh | |
env: | |
GITHUB_REPO_NAME: ${{ github.event.repository.name }} | |
GITHUB_PAGES_URL: ${{ steps.configure_pages.outputs.base_url }} | |
- uses: actions/upload-pages-artifact@v2 | |
with: | |
path: public | |
- id: deployment | |
uses: actions/deploy-pages@v2 |