Publishing GitHub Releases automatically to Valist
It's super simple to use the Valist Action to automatically publish your GitHub Releases to Valist. This is the easiest way to get started with integrating web3-native software distribution into your workflow.
Here's a great example for triggering a Valist Publish upon a GitHub Release:
1
name: Valist Publish
2
on:
3
release:
4
types: [published]
5
jobs:
6
valist-publish:
7
runs-on: ubuntu-latest
8
steps:
9
- run: echo "TIMESTAMP=$(date +%Y%m%d%H%M)" >> $GITHUB_ENV
10
- uses: robinraju/release-[email protected]
11
with:
12
repository: "ipfs/go-ipfs"
13
latest: true
14
tarBall: true
15
zipBall: true
16
fileName: "*"
17
- uses: valist-io/valist-github-[email protected]
18
with:
19
private-key: ${{ secrets.PRIVATE_KEY }}
20
account: nasdf
21
project: ipfs
22
release: ${{ env.TIMESTAMP }}
23
path: '**'
Copied!
The first section on defines when your Action should run. In this case, it will trigger upon a GitHub Release being published
The first step in the job uses the robinraju/[email protected] to pull all of the release binaries, tarballs, and zips into the staging directory.
Then, the second step uses the Valist Action to publish these artifacts, tagged by the current timestamp.
The result will create a Valist Release version containing the same contents as your GitHub Release! πŸ₯³πŸŽ‰
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
We highly encourage this method to help push the web3-native software distribution movement forward! As always, we'd love your feedback in our Discord.
Export as PDF
Copy link