Implement cloudflare turnstile captcha #40
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: Release | |
on: | |
push: | |
tags: | |
- '*.*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" | |
# Docs: https://getcomposer.org/doc/articles/scripts.md | |
# - name: Run test suite | |
# run: composer run-script test | |
# cp -r * disciple-tools-webform.php admin metrics network post-type includes languages spinner.svg version-control.json LICENSE SECURITY.md disciple-tools-webform/ | | |
# Below borrowed from https://github.com/actions/upload-release-asset | |
- name: Build project | |
run: | | |
mkdir disciple-tools-webform | |
cp -r disciple-tools-webform.php dt-mapping includes languages magic-link public spinner.svg version-control.json LICENSE SECURITY.md disciple-tools-webform/ | |
zip -r disciple-tools-webform.zip disciple-tools-webform | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: false | |
prerelease: false | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | |
asset_path: ./disciple-tools-webform.zip | |
asset_name: disciple-tools-webform.zip | |
asset_content_type: application/zip |