Push from rockit-astro/camd-andor2 #765
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: Update RPM Repository | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Pages | |
uses: actions/configure-pages@v4 | |
- name: Create RPM Database | |
run: | | |
# Create repo file structure on gh-pages branch | |
git fetch origin | |
git checkout --orphan gh-pages | |
git rm -rf . | |
git checkout master -- Packages RPM-GPG-KEY | |
# Create repo metadata | |
sudo apt-get update | |
sudo apt-get install createrepo-c | |
createrepo_c . | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: '.' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |