Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
deploy redirect fn from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
znck committed Sep 9, 2022
1 parent 23ace62 commit 383ae96
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/netlify.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deploy Redirect App
"on":
workflow_dispatch:
concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Deploy to Netlify
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deploy
env:
NETLIFY_SITE_ID: 3a6212c2-e042-41b8-b282-f43f7b05a197
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
run: npx -y netlify-cli deploy --prod
working-directory: redirect

12 changes: 11 additions & 1 deletion redirect/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
<title>Grammarly for VS Code</title>
</head>
<body>
This website provides Grammarly account connection to Grammarly for VS Code extension when used as a web extension.
<p>
This website provides Grammarly account connection to Grammarly for VS Code extension when used as a web
extension. See source of <a href="./functions/redirect.js">./functions/redirect.js</a>.
</p>

<p>
Created by <a href="https://znck.me">Rahul Kadyan</a>. Source at
<a href="https://github.com/znck/grammarly/tree/main/redirect"
>https://github.com/znck/grammarly/tree/main/redirect</a
>.
</p>
</body>
</html>
5 changes: 5 additions & 0 deletions redirect/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build]
publish = "."

[functions]
directory = "functions/"

0 comments on commit 383ae96

Please sign in to comment.