diff --git a/.github/workflows/scripts.yml b/.github/workflows/scripts.yml new file mode 100644 index 0000000..2dd1489 --- /dev/null +++ b/.github/workflows/scripts.yml @@ -0,0 +1,29 @@ +name: "Publish scripts" + +on: + push: + branches: + - master + paths: + - scripts/** + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + deployments: write + name: Publish scripts to Cloudflare Pages + steps: + - name: Check out + uses: actions/checkout@v4 + + - name: Publish to Cloudflare Pages + uses: cloudflare/pages-action@v1 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + projectName: tcpbrutalscripts + directory: scripts + gitHubToken: ${{ secrets.GITHUB_TOKEN }} + branch: main \ No newline at end of file diff --git a/scripts/_redirects b/scripts/_redirects new file mode 100644 index 0000000..26fda3e --- /dev/null +++ b/scripts/_redirects @@ -0,0 +1 @@ +/ /install_dkms.sh 301 \ No newline at end of file