Publishing Source Code Snapshots
Publishing source code snapshots is a great way to make sure your code is distributed on web3 protocols, available to anyone. It's also super easy to do, making it an excellent choice even if you're not publishing binary artifacts!
Here's an example for how to publish your repository contents:
1
name: Valist Snapshot
2
on:
3
push:
4
branches:
5
- main
6
jobs:
7
publish:
8
runs-on: ubuntu-latest
9
steps:
10
- uses: actions/[email protected]
11
with:
12
path: './'
13
- uses: valist-io/valist-github-[email protected]
14
with:
15
private-key: ${{ secrets.VALIST_SIGNER }}
16
account: acme-co
17
project: example
18
release: 1.1.2
19
path: './'
Copied!
This will create a Valist Release every time you merge into your main branch!
For a set of examples, check out this repository below:
valist-github-action-examples/.github/workflows at main Β· valist-io/valist-github-action-examples
GitHub
Export as PDF
Copy link