Skip to content

Paypal update: correct doc link, add note about supported devices #99

Paypal update: correct doc link, add note about supported devices

Paypal update: correct doc link, add note about supported devices #99

Workflow file for this run

name: Repository builds and tests
on: [ push, pull_request ]
jobs:
tests:
name: Tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: '3.0'
env:
BUNDLE_WITH: 'tests'
- uses: actions/cache@v3
with:
path: |
/tmp/iso-*.txt
/tmp/similarweb
key: tmp-files-${{ hashFiles('/tmp/similarweb/*')}}
- name: Validate JSON structure
run: bundle exec ruby ./tests/validate_json.rb
- name: Validate Region codes
run: bundle exec ruby ./tests/validate_regions.rb
- name: Validate Language codes
run: bundle exec ruby ./tests/validate_languages.rb
- name: Validate file extensions and permissions
run: tests/validate_fs.sh
- name: Validate Images
run: bundle exec ruby ./tests/validate_images.rb
- name: Validate SVG
run: bundle exec ruby ./tests/svg_lint.rb
- name: Quality Checks
run: bundle exec ruby ./tests/quality_checks.rb
publish:
name: Build and Publish files
if: >
github.event_name == 'push' &&
github.ref == 'refs/heads/master' &&
github.repository == '2factorauth/passkeys'
concurrency:
group: 'publish'
cancel-in-progress: true
needs: [ tests ]
permissions:
contents: read
pages: write
id-token: write
environment: production
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: '3.0'
- name: Generate API files
run: |
mkdir -p public/api/v1
mkdir -p public/api/private
bundle exec ruby ./scripts/APIv1.rb
- name: Publish changes to Algolia
run: bundle exec ruby ./scripts/Algolia.rb
env:
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_INDEX_NAME : ${{ vars.ALGOLIA_INDEX_NAME }}
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
- uses: crazy-max/ghaction-import-gpg@v5
id: pgp
with:
gpg_private_key: ${{ secrets.PGP_KEY }}
passphrase: ${{ secrets.PGP_PASSWORD }}
- name: Sign API files
run: bundle exec ruby scripts/Sign.rb
env:
PGP_PASSWORD: ${{ secrets.PGP_PASSWORD }}
PGP_KEY_ID: ${{ steps.pgp.outputs.keyid }}
- name: Prepare publish directory
run: mv icons/ public/icons
- uses: actions/upload-pages-artifact@v1
with:
path: public/
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v1
- name: Send webhook to Cloudflare
run: curl -X POST -IL "${{ secrets.WEBHOOK }}" -o /dev/null -w '%{http_code}\n' -s