Skip to content

Commit

Permalink
Update for release
Browse files Browse the repository at this point in the history
  • Loading branch information
hTrap committed Oct 26, 2020
1 parent 79ef51b commit 0f43b0c
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Action CI

on:
push:
branches: [main]
branches: [master]

jobs:
build:
Expand All @@ -15,9 +15,9 @@ jobs:
node-version: 12
registry-url: https://registry.npmjs.org/
- name: Test action
uses: thetechtrap/dgit-action@main
uses: thetechtrap/dgit-action@master
# The action should not publish any real changes, but should succeed.
with:
dgitWallet: "${{ secrets.DGIT_WALLET }}"
branch: "main"
branch: "master"
remoteUrl: "dgit://7yFP2o906A3nDl5eCMtN4Ycs9m5otfRrJDAGoGKDoHk/dgit-action"
37 changes: 37 additions & 0 deletions README.md
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
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 0f43b0c

Please sign in to comment.