This action analyzes the configured "delegates" folder and parses the data to create a single array with delegates that gets pushed to a decentralized storage.
Required The path to the folder with the delegates information. Default: governance/delegates
.
Required The path to the folder with the DVCs information. Default: governance/voting-committees
.
Required The file with the tags mapping/definitions. Default: governance/delegates/meta/tags.json
.
Optional web3.storage api token. At least one storage token required.
Optional nft.storage api token. At least one storage token required.
If specified, the path of the file to be written to disk
The file hash that has been uploaded to the decentralized storage.
uses: makerdao-dux/github-action-deploy-delegates@v1.1.15
with:
delegates-folder: "governance/delegates"
tags-file: "governance/delegates/meta/tags.json"
web3-storage-token: ${{ secrets.WEB3_STORAGE_TOKEN }}
nft-storage-token: ${{ secrets.NFT_STORAGE_TOKEN }}
on: [pull_request, push]
jobs:
upload_delegates:
runs-on: ubuntu-latest
name: Parses all the delegates and uploads all to IPFS
steps:
- uses: actions/checkout@v3
- name: Upload
id: upload
uses: makerdao-dux/github-action-deploy-delegates@v1.1.15
with:
delegates-folder: 'governance/delegates'
tags-file: 'governance/delegates/meta/tags.json'
web3-storage-token: ${{ secrets.WEB3_STORAGE_TOKEN }}
nft-storage-token: ${{ secrets.NFT_STORAGE_TOKEN }}
output-file: 'governance/delegates/data.json'
# Use the output from the `upload` step
- name: Get the output hash
run: echo "The IPFS hash was ${{ steps.upload.outputs.hash }}"
Based on: