repos / neovimcraft

website that makes it easy to find neovim plugins
git clone https://github.com/neurosnap/neovimcraft.git

neovimcraft / .github / workflows
Eric Bower · 03 Apr 24

deploy.yml

 1name: "deploy neovimcraft cron"
 2
 3on:
 4  schedule:
 5  - cron: "0 */6 * * *"
 6
 7env:
 8  GITHUB_ACCESS_TOKEN: ${{secrets.ACCESS_TOKEN}}
 9  GITHUB_USERNAME: ${{secrets.USERNAME}}
10  SRHT_ACCESS_TOKEN: ${{secrets.SRHT_ACCESS_TOKEN}}
11
12jobs:
13  build:
14    runs-on: ubuntu-latest
15    steps:
16    - uses: actions/checkout@v3
17    - uses: denoland/setup-deno@v1
18      with:
19        deno-version: "~1.42"
20    - run: make scrape
21    - run: make build
22
23    - name: Set outputs
24      id: vars
25      run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
26
27    - name: upload to pgs
28      uses: picosh/pgs-action@v3
29      with:
30        user: erock
31        key: ${{ secrets.PRIVATE_KEY }}
32        src: './public/'
33        project: "neovimcraft-${{ steps.vars.outputs.sha_short }}"
34        promote: "neovimcraft"
35        retain: "neovimcraft-"
36        retain_num: 1