-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,39 @@ | ||
# dgit-action | ||
|
||
Github action to mirror your Github repos to Dgit | ||
|
||
Use it as the following mirror.yml | ||
|
||
``` | ||
name: Dgit Mirror | ||
on: | ||
push: | ||
branches: [master] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
registry-url: https://registry.npmjs.org/ | ||
- name: Dgit mirror action | ||
uses: thetechtrap/dgit-action@master | ||
# The action should not publish any real changes, but should succeed. | ||
with: | ||
dgitWallet: "${{ secrets.DGIT_WALLET }}" | ||
branch: "master" | ||
remoteUrl: "dgit://7yFP2o906A3nDl5eCMtN4Ycs9m5otfRrJDAGoGKDoHk/dgit-action" | ||
``` | ||
|
||
Add Arweave Wallet contents to a wallet and add it in secrets | ||
|
||
Update values of | ||
`dgitWallet` - your wallet file pointing to the secret containg your wallet, | ||
`branch` - the branch to dgit your want to push, | ||
`remoteUrl` - your repository remote url created from https://dgit.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ runs: | |
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- run: npm install -g @thetechtrap/[email protected] | ||
- run: npm install -g @thetechtrap/git-remote-dgit@^0.1.3 | ||
shell: bash | ||
- name: Add Remote | ||
run: | | ||
|