Skip to content

Commit 0f43b0c

Browse files
committed
Update for release
1 parent 79ef51b commit 0f43b0c

File tree

3 files changed

+41
-4
lines changed

3 files changed

+41
-4
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Action CI
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [master]
66

77
jobs:
88
build:
@@ -15,9 +15,9 @@ jobs:
1515
node-version: 12
1616
registry-url: https://registry.npmjs.org/
1717
- name: Test action
18-
uses: thetechtrap/dgit-action@main
18+
uses: thetechtrap/dgit-action@master
1919
# The action should not publish any real changes, but should succeed.
2020
with:
2121
dgitWallet: "${{ secrets.DGIT_WALLET }}"
22-
branch: "main"
22+
branch: "master"
2323
remoteUrl: "dgit://7yFP2o906A3nDl5eCMtN4Ycs9m5otfRrJDAGoGKDoHk/dgit-action"

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,39 @@
11
# dgit-action
2+
23
Github action to mirror your Github repos to Dgit
4+
5+
Use it as the following mirror.yml
6+
7+
```
8+
name: Dgit Mirror
9+
10+
on:
11+
push:
12+
branches: [master]
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: actions/setup-node@v1
21+
with:
22+
node-version: 12
23+
registry-url: https://registry.npmjs.org/
24+
- name: Dgit mirror action
25+
uses: thetechtrap/dgit-action@master
26+
# The action should not publish any real changes, but should succeed.
27+
with:
28+
dgitWallet: "${{ secrets.DGIT_WALLET }}"
29+
branch: "master"
30+
remoteUrl: "dgit://7yFP2o906A3nDl5eCMtN4Ycs9m5otfRrJDAGoGKDoHk/dgit-action"
31+
32+
```
33+
34+
Add Arweave Wallet contents to a wallet and add it in secrets
35+
36+
Update values of
37+
`dgitWallet` - your wallet file pointing to the secret containg your wallet,
38+
`branch` - the branch to dgit your want to push,
39+
`remoteUrl` - your repository remote url created from https://dgit.sh

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ runs:
2828
# Steps represent a sequence of tasks that will be executed as part of the job
2929
steps:
3030
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
31-
- run: npm install -g @thetechtrap/git-remote-dgit@0.1.3
31+
- run: npm install -g @thetechtrap/git-remote-dgit@^0.1.3
3232
shell: bash
3333
- name: Add Remote
3434
run: |

0 commit comments

Comments
 (0)